callstack / callstack/react-native-paper
Change Menu focus behaviour on web
- Vorherrschende Sprache
- TypeScript
- Sterne
- 14.5k
- Forks
- 2.2k
- Ø Merge
- 5 T. 23 Std.
- Gemergte PRs (30 T.)
- 12
Beschreibung
**Is your feature request related to a problem? Please describe.**
Currently, when the menu closes, it removes focus from the currently focused element. This is problematic in scenarios where selecting an option should close the menu and allow the user to continue interacting with a text field — for example, one they were editing before opening the menu, or one displayed in a dialog window.
**Describe the solution you'd like**
Remove the blur behavior, or provide a way to customize it, e.g., via a component prop.
**Describe alternatives you've considered**
The only workaround I’ve found is to introduce a delay before manually calling .focus() after the menu closes, but this feels like a hack.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.