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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant