-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix <range-input disabled> #195
Conversation
It looks like |
The styling relies on |
This PR may fix the styling but it breaks the behaviour 😄 . Feels like the original problem is with |
Yeah I'm kinda stumped here - it seems like the (prior to this PR) reflection should have worked since it does: this._input.disabled = true
this.setAttribute('disabled', this._input.getAttribute('disabled')) ...which should be equivalent to |
For the +1 to Jake. I think the error is in line 97:
should do an // edit: I just realized that y’all are talking about the set case, not the unset case. |
Side note: The |
…bute worked previously)" This reverts commit f596463.
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
Ahh wow yeah that'd be from the back and forth we did on the reflection approach. The hasAttribute thing is fine, though it doesn't seem like that was the cause of the .disabled bug. |
The difference is the explicit "removeAttribute" call. See previous commit. |
* Fix .disabled property reflection for range-input (only attribute worked previously) * Revert "Fix .disabled property reflection for range-input (only attribute worked previously)" This reverts commit f596463. * Fix reflection * Use hasAttribute()
This fixes the
.disabled
property reflection for range-input. Previously, only thedisabled
attribute worked.Fixes #142.