From 5cbabdf4c95ec2bf13a40a9912d660601823e01c Mon Sep 17 00:00:00 2001 From: Paul O'Shannessy Date: Tue, 6 Aug 2013 14:15:33 -0700 Subject: [PATCH] Support `autocapitalize` DOM Property It's non-standard, but potentially useful on mobile. See some discussion in google group: https://groups.google.com/forum/#!topic/reactjs/MBcCFohHHHA Closes #247 --- src/dom/DefaultDOMPropertyConfig.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/dom/DefaultDOMPropertyConfig.js b/src/dom/DefaultDOMPropertyConfig.js index 045aad5edc..b3ec530477 100644 --- a/src/dom/DefaultDOMPropertyConfig.js +++ b/src/dom/DefaultDOMPropertyConfig.js @@ -97,6 +97,12 @@ var DefaultDOMPropertyConfig = { value: MUST_USE_PROPERTY | HAS_SIDE_EFFECTS, width: MUST_USE_ATTRIBUTE, wmode: MUST_USE_ATTRIBUTE, + + /** + * Non-standard Properties + */ + autoCapitalize: null, // Supported in Mobile Safari for keyboard hints + /** * SVG Properties */ @@ -136,6 +142,7 @@ var DefaultDOMPropertyConfig = { stopOpacity: 'stop-opacity' }, DOMPropertyNames: { + autoCapitalize: 'autocapitalize', autoComplete: 'autocomplete', autoFocus: 'autofocus', autoPlay: 'autoplay',