Skip to content

Commit

Permalink
Support string values for capture attribute. (facebook#11424)
Browse files Browse the repository at this point in the history
* Uses HAS_OVERLOADED_BOOLEAN_VALUE instead of HAS_BOOLEAN_VALUE
  * Allows for <input type="file" capture="user" />
Fixes facebook#11419
  • Loading branch information
maxschmeling authored and Ethan-Arrowood committed Dec 8, 2017
1 parent 2e2902e commit 173373e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-dom/src/shared/HTMLDOMPropertyConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var HTMLDOMPropertyConfig = {
// autoFocus is polyfilled/normalized by AutoFocusUtils
// autoFocus: HAS_BOOLEAN_VALUE,
autoPlay: HAS_BOOLEAN_VALUE,
capture: HAS_BOOLEAN_VALUE,
capture: HAS_OVERLOADED_BOOLEAN_VALUE,
checked: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
cols: HAS_POSITIVE_NUMERIC_VALUE,
contentEditable: HAS_STRING_BOOLEAN_VALUE,
Expand Down

0 comments on commit 173373e

Please sign in to comment.