Hi,
There's a new bug on the 23.2.5 release of the .NET8 MAUI Controls.
Setting the IsEnabled property on SfButton to False is being complete ignored (ie. still shows the pressed/shimmer effect and calls the attached ICommand) - this is happening on both Android and iOS.
This bug was not happening on previous releases (ie. 23.2.4) so it's definitely new. I also checked the Native MAUI Button control & confirmed there is no issue with that - it's just the Syncfusion one.
This is a real showstopper for updating to 23.2.5 as we have used SfButton extensively throughout our App & need to show disabled buttons (rather than hiding them).
If this could please be fixed ASAP that would be appreciated.
thanks
Niall
Hi Niall,
We have checked the reported issue "NET8 MAUI SfButton ignoring IsEnabled property False on 23.2.5 Release" based on the details provided, but we were not able to reproduce the issue at our end. We have attached tested sample for your reference. Kindly review the attached sample and apply any required modifications to reproduce the problem. Afterward, kindly forward the sample to us or share issue replication sample with replication steps, as it would enable us to conduct a more thorough investigation of the issue.
Regards,
Brundha V.
I am seeing the same problem. I've sent in a ticket on it.
Hi Brunda,
Thanks for your response/sample. I tried your isolated sample App and I agree the issue is not reproducible in that sample (and it's correctly disabling the SfButton).
However, our App which is built via clean DevOps pipelines environment is definitely showing there is a difference in behaviour between the 23.2.4 and 23.2.5 releases (with no other code changes other than referenced version changed) & the IsEnabled property is definitely being ignored. I was also able to reproduce/verify this issue in dev environments on both Windows (Android Emulator) and Mac (iOS Simulator).
Thomas above has also reported experiencing same issue too.
So I'm guessing there is something a little more complex going on here which is causing this problem - potentially it's when many other Syncfusion libraries are in use or perhaps when other 3rd party libraries are also referenced?
For the time being I have implemented a workaround where I'm using InputTransparent on the wrapper views and some other tricks, so it's ensuring the SfButton does not receive the click events - however it would still be nice to get to the bottom of this behaviour change/issue.
thanks
Niall
Hi Niall,
Sorry for the inconvenience.
We are able to reproduce the reported issue "NET8 MAUI SfButton ignoring IsEnabled property False on 23.2.5 Release". And we have fixed the reported issue. At present, a custom patch has been created for version 23.2.5. We have attached the NuGet file for your convenience.
Please note that we have created this patch for version 23.2.5 specifically to resolve the issue reported in this ticket. If you have received other patches for the same version for other products, please apply all patches in the order received.
Note: Please refer to the below link to apply the custom patch.
https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache
We will include the fix in our upcoming weekly release on December 5, 2023. We appreciate your patience until then.
Disclaimer: The inclusion of this solution in the weekly release may change due to other factors, including but not limited to QA checks and work reprioritization.
Regards,
Brundha V
Hi Niall,
We have included the fix for the reported issue "NET8 MAUI SfButton ignoring IsEnabled property False on 23.2.5 Release" in our latest NuGet v23.2.7, which is available for download ( https://www.nuget.org/ ). 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,
Brundha V
Hallo,
I'm still having the issue, when I set the Button statat IsEnabled = false over Viewmodel (Binding), the Button is not disabled. From state false to true, it is working I'm on version 25.2.5
Thanks,
Markus
Hi Markus,
We have investigated your query on "when I set the Button state IsEnabled = false over Viewmodel (Binding), the Button is not disabled", but the SfButton control was working as expected. We have shared the tested sample for your reference.
So, We request you to make the necessary modifications in the sample to replicate the reported issue and share it with us. This will help us guide you to resolve the issue at your end.
Regards,
Prithis I