-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(underlay): dispatch a "close" event rather than relying naively on "click" #4020
Conversation
Tachometer resultsChromeaction-menu permalink
dialog permalink
picker permalink
split-button permalink
tray permalink
underlay permalink
Firefoxaction-menu permalink
dialog permalink
picker permalink
split-button permalink
tray permalink
underlay permalink
|
I'm just using emulated mobile behaviors in Chrome, which isn't always 100% accurate, but the picker doesn't stay open in this case: mobile-picker.mov |
@hunterloftis that is NOT the experience that I was addressing, but I'll dig into that, too! 😳 In a mobile context, so smaller window but still touch, a Tray will be opened with an Underlay, instead of the Popover. That is hopefully addressed by this change. Will report back when I know more about touch more broadly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see, yep repro'd both the existing & the fixed behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reproduced successfully on my iPhone 👍 Looks good.
241e661
858750c
to
241e661
Compare
Description
Relying on
click
directly means that patterns that open an Overlay onpointerdown
, like<sp-picker>
, could inadvertently close the Overlay as part of that initial interaction.How has this been tested?
Types of changes
Checklist