callstack / callstack/react-native-paper

Change Menu focus behaviour on web

未关闭
#4,720 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
feature request
主要语言
TypeScript
星标
14.5k
派生
2.2k
平均合并
5 天 23 小时
30 天内合并 PR
12

描述

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

贡献指南

打开贡献指南

调研方向

检查此 issue 中描述的 web Menu 焦点处理,首先从菜单关闭时移除焦点的实现开始。确认文本字段和对话框的预期行为,然后验证焦点是否得以保留或可配置,同时不破坏菜单关闭行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
react-native, typescript
领域
accessibility, frontend
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。