Skip to content

fix(menu): ignore scrollbar-sized window changes - #5303

Open
pcbeingused333 wants to merge 1 commit into
callstack:mainfrom
pcbeingused333:fix/react-native-paper-3854
Open

pcbeingused333 wants to merge 1 commit into
callstack:mainfrom
pcbeingused333:fix/react-native-paper-3854

Conversation

@pcbeingused333

Copy link
Copy Markdown

On web, a Menu that does not fit in the window shows a scrollbar. That changes the window size by about 15px. The menu treated every Dimensions change as a reason to call onDismiss, so the menu flashed and closed.

A change smaller than a scrollbar on both axes is now ignored. A real resize, such as a rotation from 400×800 to 800×400, still dismisses the menu.

Prepared with the help of an AI coding assistant.

Fixes #3854

Opening a menu that overflows the page shows a scrollbar. Dimensions
reported that as a change and the menu dismissed itself.

Fixes callstack#3854
@github-actions

Copy link
Copy Markdown

Found potential problems with the pull request:

  • Screenshot or video evidence is missing. Make sure to include one if it affects the UI.

@Doberjohn Doberjohn added this to the 6.1.0 milestone Nov 24, 2026
@Doberjohn

Copy link
Copy Markdown
Collaborator

Thanks! #3854 affects 5.x too, so could you also open this against 5.0? It can ship in the next 5.15.x. This one is on 6.1.0, since 6.0 now takes only regressions and major bugs. A short video would help too.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Menu automatically dismisses on web when outside the bounds of the window

2 participants