You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Blener Hi. Thanks for the report, but it's the default behavior of Xamarin.Forms.
A command comes with its own CanExecute property that overrides IsEnabled. If not explicitly set through commandCanExecute, it will default to true so the button will always be active regardless of isEnabled.
So when using commands in Fabulous, use commandCanExecute to switch between enable and disable instead of IsEnabled.
View.Button(text ="Disabled with command", command = ignore, commandCanExecute =false)
When a button has the command property set it doesn't get disabled.
The code above generates this:
This was using Fabulous 0.57.0 on an Android emulator.
Thanks.
The text was updated successfully, but these errors were encountered: