From 173373ebd5a4d1b7780bbe1e3ff75e2d0d11944e Mon Sep 17 00:00:00 2001 From: Max Schmeling Date: Sun, 12 Nov 2017 08:29:27 -0600 Subject: [PATCH] Support string values for capture attribute. (#11424) * Uses HAS_OVERLOADED_BOOLEAN_VALUE instead of HAS_BOOLEAN_VALUE * Allows for Fixes #11419 --- packages/react-dom/src/shared/HTMLDOMPropertyConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-dom/src/shared/HTMLDOMPropertyConfig.js b/packages/react-dom/src/shared/HTMLDOMPropertyConfig.js index d2da706a4432b..ad38c10f9f636 100644 --- a/packages/react-dom/src/shared/HTMLDOMPropertyConfig.js +++ b/packages/react-dom/src/shared/HTMLDOMPropertyConfig.js @@ -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,