Skip to content

Commit

Permalink
Support autocapitalize DOM Property
Browse files Browse the repository at this point in the history
It's non-standard, but potentially useful on mobile.

See some discussion in google group: https://groups.google.com/forum/#!topic/reactjs/MBcCFohHHHA

Closes facebook#247
  • Loading branch information
zpao committed Aug 6, 2013
1 parent 9ef4e74 commit 5cbabdf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/dom/DefaultDOMPropertyConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -136,6 +142,7 @@ var DefaultDOMPropertyConfig = {
stopOpacity: 'stop-opacity'
},
DOMPropertyNames: {
autoCapitalize: 'autocapitalize',
autoComplete: 'autocomplete',
autoFocus: 'autofocus',
autoPlay: 'autoplay',
Expand Down

0 comments on commit 5cbabdf

Please sign in to comment.