callstack / callstack/react-native-paper
Change Menu focus behaviour on web
- Ngôn ngữ chính
- TypeScript
- Star
- 14.5k
- Fork
- 2.2k
- Merge trung bình
- 5 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 12
Mô tả
**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.
Hướng dẫn đóng góp
Hướng nghiên cứu
Xem xét việc xử lý focus của web Menu được mô tả trong issue này, bắt đầu với phần triển khai loại bỏ focus khi menu đóng. Xác nhận hành vi ожида đợi đối với các trường văn bản và hộp thoại, sau đó kiểm tra rằng focus được giữ lại hoặc có thể cấu hình mà không làm hỏng hành vi đóng menu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- react-native, typescript
- Lĩnh vực
- accessibility, frontend
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100