Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Enhanced select menu doesn't stay open #4173

Closed
MarcoTroost opened this issue Dec 13, 2018 · 2 comments · Fixed by #4590
Closed

Enhanced select menu doesn't stay open #4173

MarcoTroost opened this issue Dec 13, 2018 · 2 comments · Fixed by #4590
Assignees

Comments

@MarcoTroost
Copy link

When using the the enhanced version of the mdc-select menu (v. 0.42.0), the menu-list immediately disappears. One would expect the menu to stay open until it loses focus.

This behavior can also be seen @ https://material-components.github.io/material-components-web-catalog/#/component/select , at least on my computer (mac os mojave, chrome v 71).

@williamernest
Copy link
Contributor

Thanks for filing this issue. It looks like any long-click on the enhanced select will cause the menu to close when you release. Definitely a bug.

shelart added a commit to shelart/material-components-web that referenced this issue Feb 14, 2019
shelart added a commit to shelart/material-components-web that referenced this issue Feb 14, 2019
Fix Enhanced MDCSelect behaviour on touch screens/desktops with touchpad
@shelart
Copy link

shelart commented Feb 14, 2019

I think it's caused by the same reason as the enhanced MDCSelect doesn't work on touch screens. It seems like Chrome emits both events touchstart and mousedown when a laptop trackpad used, as a touch screen on mobile devices.
I actually don't understand why MDC have to listen for ...down events instead of listening just click-s, which are working well on all types of devices: mouse, touchpad, touch screen (tested).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
5 participants