Description
Setters are not unapplied when using custom VisualState on a Button on Android, iOS and MacCatalyst.
Steps to Reproduce
- Create a custom Button with custom VisualState.
- Override the ChangeVisualState method and go to the Custom state when clicking on the Button every other time, otherwise call base.ChangeVisualState().
- Add VisualStateGroups for the Button.
- Click on the Button - go to Custom VS.
- Click on the Button again - go to Normal VS.
Expected: When the Button is clicked the second time it should go to Normal state.
Actual: When the Button is clicked the second time it visually stays in Custom state.
Link to public reproduction project repository
https://github.com/telerik/ms-samples/tree/main/Maui/ButtonVisualStatesIssue
Version with bug
8.0.3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, macOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
Description
Setters are not unapplied when using custom VisualState on a Button on Android, iOS and MacCatalyst.
Steps to Reproduce
Expected: When the Button is clicked the second time it should go to Normal state.
Actual: When the Button is clicked the second time it visually stays in Custom state.
Link to public reproduction project repository
https://github.com/telerik/ms-samples/tree/main/Maui/ButtonVisualStatesIssue
Version with bug
8.0.3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, macOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response