You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace const menu = useMenuState(); with const menu = useMenuState({ modal: true }); in the example code.
Click on the Preferences button, and note how the page scrolls to the bottom. If you click it again without reloading the page it will work as expected - this only occurs on first open.
Expected behavior
Do not scroll to bottom of page when opening a menu.
Possible solutions
This issue was introduced with #801. I have checked out the commit prior to this change and the bug is not present.
Gif of behavior:
The text was updated successfully, but these errors were encountered:
Thank you for opening an issue. We'll get back to you as soon as we can.
Please, consider supporting us on Open Collective. We give a special attention to issues opened by backers.
If you use Reakit at work, you can also ask your company to sponsor us 鉂わ笍.
馃悰 Bug report
Current behavior
Page scrolls to bottom upon clicking a menu with
modal: true
.Steps to reproduce the bug
const menu = useMenuState();
withconst menu = useMenuState({ modal: true });
in the example code.Preferences
button, and note how the page scrolls to the bottom. If you click it again without reloading the page it will work as expected - this only occurs on first open.Expected behavior
Do not scroll to bottom of page when opening a menu.
Possible solutions
This issue was introduced with #801. I have checked out the commit prior to this change and the bug is not present.
Gif of behavior:
The text was updated successfully, but these errors were encountered: