Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Select] Keep popup open when another element scrolls #497

Closed
luncheon opened this issue Mar 17, 2022 · 2 comments
Closed

[Select] Keep popup open when another element scrolls #497

luncheon opened this issue Mar 17, 2022 · 2 comments

Comments

@luncheon
Copy link

The current Chromium implementation of <selectmenu> closes the popup when scrolling occurs outside of that element.
This behavior makes it hard to implement “Live Preview” feature (like MS Office).

It looks: hover an <option> -> content size changes -> scroll position changes -> popup closes.

(Look at the scrollbar.)

selectmenu-live-preview.mp4

CodeSandbox:
https://codesandbox.io/s/selectmenu-example-n9tl49?file=/src/SelectFontFamily.tsx

Smaller example on CodePen:
https://codepen.io/luncheon/pen/mdpeRvV

This may not be a behavior that needs to be specified in the specification, but please consider supporting Live Preview.
(Whether or not Live Preview is supported, I think it is inconvenient to close the popup when scrolling.)

@mfreed7
Copy link
Collaborator

mfreed7 commented Mar 24, 2022

Thanks for reporting this issue. Your demo does make a very compelling case for not light dismissing on scroll.

This is a duplicate of #240, so I'm going to close it. But I'll add a comment there referencing your point of view and demo page.

@luncheon
Copy link
Author

Thank you😊

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

No branches or pull requests

2 participants