From 280eff41f351d3c73afd7a26b8b8811eaedde73d Mon Sep 17 00:00:00 2001 From: Laurence Rowe Date: Mon, 28 Oct 2013 18:53:19 -0700 Subject: [PATCH] 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. --- src/dom/DefaultDOMPropertyConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dom/DefaultDOMPropertyConfig.js b/src/dom/DefaultDOMPropertyConfig.js index a5380fa9d7b50..ed6a53206dc3d 100644 --- a/src/dom/DefaultDOMPropertyConfig.js +++ b/src/dom/DefaultDOMPropertyConfig.js @@ -57,7 +57,7 @@ var DefaultDOMPropertyConfig = { data: null, // For `` 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,