CanExecute doesn't work probably in 19.1.0.56

Hi,
I just upgraded to the latest version for the SfButton nuget 19.1.0.56, however with this version the "CanExecute" doesn't work as in the prior version.
All buttons with just a "true" or no CanExecute function, are working fine.
However all other buttons do not execute the command even the CanExecute condition is true.

Reverting back to 19.1.0.55 solves the issue for me.
So I'm guessing there is an issue with that in the latest build.

Code snippet below:

Constructor
CalculateCommand = new Command(async () => await CalculateAction(), CalculateCommand_CanExcecute);

Command

        public Command CalculateCommand { get; set; }
        bool CalculateCommand_CanExcecute()
        {
            bool canExecute = 
                Files.Count > 0
                &&
                ProjectName.Length > 0
                ;
            return canExecute;
        }

        async Task CalculateAction()
        {
             // do stuff
        }

In the properties I call 
CalculateCommand.ChangeCanExecute();



2 Replies 1 reply marked as answer

SM Saravanan Madheswaran Syncfusion Team April 19, 2021 06:11 AM UTC

Hi Andreas 
 
Greetings from Syncfusion support.   
  
We would like to let you know that we have already noted the same issue and fixed it internally. And the fix will be available at our upcoming weekly NuGet release by tomorrow 20th April 2021. We will update you once it rolled out. 
 
Regards, 
Saravanan.  



SM Saravanan Madheswaran Syncfusion Team April 21, 2021 01:02 PM UTC

 
We are glad to announce that our weekly NuGet was rolled out and fix for the reported issue was included in the weekly NuGet.

NuGet Version: 19.1.0.57 
 

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
 
 
Regards, 
Saravanan.  


Marked as answer
Loader.
Up arrow icon