Skip to content

Commit 280eff4

Browse files
committed
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.
1 parent 214e910 commit 280eff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dom/DefaultDOMPropertyConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ var DefaultDOMPropertyConfig = {
5757
data: null, // For `<object />` acts as `src`.
5858
dateTime: MUST_USE_ATTRIBUTE,
5959
dir: null,
60-
disabled: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
60+
disabled: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE,
6161
draggable: null,
6262
encType: null,
6363
form: MUST_USE_ATTRIBUTE,

0 commit comments

Comments
 (0)