BUG NET8 MAUI SfButton ignoring IsEnabled property False on 23.2.5 Release

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



7 Replies

BV Brundha Velusamy Syncfusion Team November 24, 2023 07:43 AM UTC

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.


Attachment: ButtonSample_1a641675.zip


TG Thomas Giacchi November 25, 2023 04:36 PM UTC

I am seeing the same problem.  I've sent in a ticket on it.  



NI Niall November 25, 2023 09:35 PM UTC

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






BV Brundha Velusamy Syncfusion Team November 27, 2023 01:59 PM UTC

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


Attachment: CustomPatch23.2.5_b1d6394a.zip


BV Brundha Velusamy Syncfusion Team December 7, 2023 02:36 PM UTC

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



MN Markus Nottbohm May 23, 2024 07:57 AM UTC

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



PI Prithis Iyyappan Syncfusion Team May 24, 2024 03:52 PM UTC

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


Attachment: ButtonSample_f2165fb8.zip

Loader.
Up arrow icon