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

Only trigger Focus & Unfocus methods when IsFocused is not set yet #1015

Closed TimLariviere closed 1 year ago

TimLariviere commented 1 year ago

A quick fix for an issue on Android where the focus modifier can trigger picker dialogs to show up twice in a row.

This fix makes sure we only trigger the Focus() and Unfocus() methods of Xamarin.Forms when IsFocused is not set yet.