Skip to content

Commit 173373e

Browse files
maxschmelingEthan-Arrowood
authored andcommitted
Support string values for capture attribute. (facebook#11424)
* Uses HAS_OVERLOADED_BOOLEAN_VALUE instead of HAS_BOOLEAN_VALUE * Allows for <input type="file" capture="user" /> Fixes facebook#11419
1 parent 2e2902e commit 173373e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/react-dom/src/shared/HTMLDOMPropertyConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var HTMLDOMPropertyConfig = {
2626
// autoFocus is polyfilled/normalized by AutoFocusUtils
2727
// autoFocus: HAS_BOOLEAN_VALUE,
2828
autoPlay: HAS_BOOLEAN_VALUE,
29-
capture: HAS_BOOLEAN_VALUE,
29+
capture: HAS_OVERLOADED_BOOLEAN_VALUE,
3030
checked: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
3131
cols: HAS_POSITIVE_NUMERIC_VALUE,
3232
contentEditable: HAS_STRING_BOOLEAN_VALUE,

0 commit comments

Comments
 (0)