Restore button filter for dialog closing #1336
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fine tune #1280 change. The problem is some components like bottom sheet or navigation drawer define custom scrim and detect click on them via regular detection like
detectTapGestures
(that filters only primary mouse button). So to keep things consistent, we need to revert primary button filtering forDialog
, but keep it as-is forPopup
to avoid breaking dropdowns,Testing
Unit test:
DialogTest
Try to close
Popup
andDialog
by outside click via mouse buttons and touch.This should be tested by QA
Release Notes
Fixes - Desktop
Dialog
by mouse clicking on scrim that was introduced by1.6.10-beta02