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

MDC Select limitation: Focus state doesn't work for JS selects #1725

Closed
kfranqueiro opened this issue Dec 7, 2017 · 0 comments
Closed

MDC Select limitation: Focus state doesn't work for JS selects #1725

kfranqueiro opened this issue Dec 7, 2017 · 0 comments

Comments

@kfranqueiro
Copy link
Contributor

In MDC Select's DOM structure, the element that receives focus is not the element that ripple/states styles are hooked up to. The element that receives focus is above the ripple surface element.

We have a few components (checkbox, radio, text field) where we override a few MDCRipple adapter methods to detect events on a child element instead of the root, but this would require the opposite, and I'm not sure if that could cause any issues.

OTOH, I'm curious whether we can't simply hook up the ripple to the root element anyway, which might fix multiple ripple/state limitations with MDC Select.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant