When modal opened , click the scroll will make any control lose focus.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- bootstrap, react, typescript
- Domain
- frontend
Research direction
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.
Written by the indexing model from the issue text.
Description
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- goto the example page.
- click the inputbox on page.
- click the scrollbar, the inputbox doesn't lose focus.
- click show modal button.
- click the inputbox in the modal.
- 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
- Dominant language
- TypeScript
- Stars
- 22.6k
- Forks
- 3.6k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from react-bootstrap/react-bootstrap
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 48/100
react-bootstrap/react-bootstrap#6989 ·
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
react-bootstrap/react-bootstrap#6987 · 2 comments · 1 reaction ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
react-bootstrap/react-bootstrap#6985 · 2 comments ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
react-bootstrap/react-bootstrap#6984 ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 35/100
react-bootstrap/react-bootstrap#6962 · 1 comment ·
All issues in react-bootstrap/react-bootstrap
Similar issues
-
Type/Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
OpenNSW/nsw-srilanka#497 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
0xMiden/bridge-portal#132 ·
-
react-doctor severity:warning tech-debt
Difficulty 1/5 Under an hour Newbie friendliness 88/100
digidem/comapeo-cloud-app#403 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100