Skip to content

Fix MenuAnchor closes on internal scroll - #122696

Merged
auto-submit[bot] merged 1 commit into
flutter:masterfrom
NevercodeHQ:fix_menuAnchor_close_on_internal_scroll
Mar 15, 2023
Merged

Fix MenuAnchor closes on internal scroll#122696
auto-submit[bot] merged 1 commit into
flutter:masterfrom
NevercodeHQ:fix_menuAnchor_close_on_internal_scroll

Conversation

@bleroux

Copy link
Copy Markdown
Contributor

Description

This PR modifies _MenuAnchorState._handleScroll logic.
Before this PR, if the root menu was scrollable and a scroll event is emitted, top level menus will react to this scroll event and close the root menu.
After this PR, only the root menu reacts to external scroll events and closes itself.

Related Issue

Fixes#122168

Tests

Adds 1 test.

@flutter-dashboardflutter-dashboardBot added p: material_ui material_ui package in flutter/packages framework flutter/packages/flutter repository. See also f: labels. labels Mar 15, 2023

@gspencergooggspencergoog left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d

@gspencergoog

Copy link
Copy Markdown
Contributor

Thanks for fixing that @bleroux!

@bleroux
blerouxforce-pushed the fix_menuAnchor_close_on_internal_scroll branch from d3dc25a to e4d5b90CompareMarch 15, 2023 18:28
@blerouxbleroux added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 15, 2023
@auto-submit
auto-submitBot merged commit 5e54139 into flutter:masterMar 15, 2023
@bleroux
bleroux deleted the fix_menuAnchor_close_on_internal_scroll branch March 15, 2023 22:06
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 16, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 16, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 16, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 16, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmitMerge PR when tree becomes green via auto submit Appframeworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scrolling closes menuAnchor widget

2 participants

@bleroux@gspencergoog