Make 'disabled' MUST_USE_ATTRIBUTE for compatibility with CSS [disabled] 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.
This commit is contained in:
Laurence Rowe
2013-10-28 18:53:19 -07:00
parent 214e9103bf
commit 280eff41f3

View File

@@ -57,7 +57,7 @@ var DefaultDOMPropertyConfig = {
data: null, // For `<object />` acts as `src`.
dateTime: MUST_USE_ATTRIBUTE,
dir: null,
disabled: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
disabled: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE,
draggable: null,
encType: null,
form: MUST_USE_ATTRIBUTE,