When modal opened , click the scroll will make any control lose focus.

Đang mở
#5,518 6 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
bootstrap, react, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Start with the linked CodeSandbox reproduction and compare focus behavior before and after opening the modal in Firefox and Chrome. Trace the modal and input focus handling in the relevant React-Bootstrap components. Done means clicking the scrollbar while the modal input is focused no longer causes that input to lose focus, while the existing reproduction steps still work.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. goto the example page.
  2. click the inputbox on page.
  3. click the scrollbar, the inputbox doesn't lose focus.
  4. click show modal button.
  5. click the inputbox in the modal.
  6. click the scrollbar, the inpubox lose the focus.

Reproducible Example

https://codesandbox.io/s/hidden-cherry-j9ck1?file=/src/App.js

Expected behavior

The input box not lose the focus in step 6.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment (please complete the following information)

  • Operating System: window
  • Browser, Version : firefox 82, chrome 86
  • React-Bootstrap Version : see the example

Additional context

Ngôn ngữ chính
TypeScript
Star
22.6k
Fork
3.6k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của react-bootstrap/react-bootstrap

Tất cả issue của react-bootstrap/react-bootstrap

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.