mui / mui/material-ui

[Popper] Leverage ResizeObserver

Open
#22,303 8 comments 1 reaction 0 assignees View on GitHub

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

  1. When scrolling (fast) it does not remain in position but jiggles around
  2. When using "keepMounted" open the popper, close it -> additional white space at bottom of page
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.