[Popper] Leverage ResizeObserver
Open
Nobody has claimed this yet.
component: Popper
scope: popup
type: new feature
- Dominant language
- JavaScript
- Stars
- 99.1k
- Forks
- 32.5k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 106
Description
https://codesandbox.io/s/practical-kalam-jz2ew?file=/src/Demo.js
open the popper by clicking on the button
- When scrolling (fast) it does not remain in position but jiggles around
- When using "keepMounted" open the popper, close it -> additional white space at bottom of page
- When the height of the content inside the popper increases (i.e. because of a form interaction) the position of the popper is not updated until scrolling. After scrolling it jumps up to accommodate for the new height.
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 with the linked CodeSandbox reproduction and its src/Demo.js entry point, then locate the Popper implementation responsible for positioning and mounted content. Reproduce the fast-scrolling, keepMounted, and dynamically changing-height cases; done means the popper stays positioned and updates without delayed jumps or extra page whitespace.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100