Skip to content

Make 'disabled' MUST_USE_ATTRIBUTE for compatibility with CSS [disabled] selectors #450

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

Merged
merged 1 commit into from
Oct 29, 2013

Conversation

lrowe
Copy link
Contributor

@lrowe lrowe commented Oct 29, 2013

When a ReactDOMComponent is created with the property disabled: true subsequently setting the property to disabled: false the HTML attribute disabled="true" was being left in the DOM.

Example: http://jsfiddle.net/kb3gN/409/

…ed] selectors.

When a ReactDOMComponent is created with the property `disabled: true` subsequently setting the property to `disabled: false` the HTML attribute `disabled="true"` was being left in the DOM.
@zpao
Copy link
Member

zpao commented Oct 29, 2013

Nice! I did a minimal test to make sure it still works with <input>s (where the attribute actually has meaning) - http://jsfiddle.net/zpao/HF4mV/. But we should be making sure we still work with CSS selectors like this (which actually seems like a great way to test this whole module...)

@zpao zpao merged commit 280eff4 into facebook:master Oct 29, 2013
@zpao zpao mentioned this pull request Oct 29, 2013
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants