fabulous-dev / Fabulous

Declarative UI framework for cross-platform mobile & desktop apps, using MVU and F# functional programming
https://fabulous.dev
Apache License 2.0
1.15k stars 121 forks source link

Trigger Focus methods only when previous value is not same #1016

Closed TimLariviere closed 1 year ago

TimLariviere commented 1 year ago

On Android, Pickers and DatePickers could open repeatedly their selection dialogs when using the .focus() modifier.

This PR fixes this by ensuring we are calling .Focus() and .Unfocus() methods only when really necessary.