JedWatson / JedWatson/react-select
Scrolllock shifts layout.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 28k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
When i set my vertical scrollbars always on with menuShouldBlockScroll, there is a padding-right added to the body which shifts entire layout and i get white stripe on the right end of the page.
Not sure how it should act, but if I set my OS settings to auto hide scrollbars it works okay.
Maybe there should be a prop to opt out from this padding adjustment?
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.
Research direction
Start by reproducing the layout shift in the linked CodeSandbox with menuShouldBlockScroll enabled and persistent vertical scrollbars. Trace the scroll-lock behavior from that reproduction; done should address the unwanted body padding or clearly establish the intended behavior without leaving a white stripe or shifting the layout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100