-
Couldn't load subscription status.
- Fork 562
Open
Description
🐛 Bug report
Current Behavior
When rendering menu buttons that open menu lists on slightly long pages, opening a menu after scrolling down a bit often causes the page to scroll farther down. This only happens when rendering the menu lists inside portals, and when using React 18.
This screen recording shows the behavior happening in the reproducible example.
Expected behavior
The menu should open without any change in the page's scroll position.
Reproducible example
Your environment
| Software | Name(s) | Version |
|---|---|---|
| Reach Package | menu-button | 0.17.0 |
| React | react | 18.2.0 |
| Browser | Chrome | 104.0.5112.79 |
| Browser | Firefox | 103.0.1 |
| Assistive tech | - | - |
| Node | - | - |
| npm/yarn | - | - |
| Operating System | MacOS | 12.4 |
shinzui, gfohl, ccveer, wfendler, zpeterson and 5 moregfohl, wfendler and bryce-pearce
Metadata
Metadata
Assignees
Labels
No labels