@samitouri / QOS-React-2 / commits / 280eff41f3

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.

Laurence Rowe committed Oct 28, 2013 at 18:53 UTC 280eff41f351d3c73afd7a26b8b8811eaedde73d
1 file changed +1 -1
src/dom/DefaultDOMPropertyConfig.js
+1 -1
@@ -57,7 +57,7 @@ var DefaultDOMPropertyConfig = {
57 data: null, // For `<object />` acts as `src`.
58 dateTime: MUST_USE_ATTRIBUTE,
59 dir: null,
60 - disabled: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
60 + disabled: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE,
61 draggable: null,
62 encType: null,
63 form: MUST_USE_ATTRIBUTE,