callstack / callstack/react-native-paper

Change Menu focus behaviour on web

Ouverte
#4,720 0 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
feature request
Langage dominant
TypeScript
Étoiles
14.5k
Forks
2.2k
Merge moyen
5 j 23 h
PR mergées (30 j)
12

Description

**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.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Review the web Menu focus handling described in this issue, starting with the implementation that removes focus when the menu closes. Confirm the expected behavior for text fields and dialogs, then verify that focus is preserved or configurable without breaking menu closing behavior.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
react-native, typescript
Domaine
accessibility, frontend
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.