-
Notifications
You must be signed in to change notification settings - Fork 159
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
hidden attribute does not work for paper-input inside shadow dom #397
Comments
This is true -- unfortunately this is a problem with the The fix right know is for you to specify what |
Can we discuss further? I understand how the hidden attribute works and how it is easily overwritten. I'm saying that paper-input should not set the display property for itself when the hidden attribute is specified. More specifically The discussion on iron-flex-layout is over the fact that it leaks Note my commit https://github.com/coreyfarrell/paper-input/commit/3a95e117589eb94e3a610a5bc9bf0b0fce7afde9 doesn't deal with |
paper-input needs to set a |
The default is I could rework to use |
While worth avoiding, Feel free to send a PR for this! |
Description
paper-input
does not respect the hidden attribute when used inside a shadow root. This is a common issue in many Polymer elements, I'm just randomly starting withpaper-input
.Expected outcome
The
hidden
attribute should causedisplay:none
to apply.Actual outcome
The
:host
selector takes over, causingpaper-input
to remain visible even with hidden attribute.Live Demo
https://jsbin.com/gukazaxenu/edit?html,output
Proposed fix
We should be using
:host(:not([hidden]))
selector to specify thedisplay
option of custom elements.The text was updated successfully, but these errors were encountered: