Skip to content
Closed
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export function createStrictDOMTextInputComponent<P: StrictInputProps, T>(
const elementRef = useStrictDOMElement<T>(ref, { tagName });

const {
autoCapitalize,
autoComplete,
defaultValue,
disabled,
Expand Down Expand Up @@ -121,6 +122,9 @@ export function createStrictDOMTextInputComponent<P: StrictInputProps, T>(

// Component-specific props

if (autoCapitalize != null) {
nativeProps.autoCapitalize = autoCapitalize;
}
if (autoComplete != null) {
nativeProps.autoComplete = autoComplete;
}
Expand Down
9 changes: 1 addition & 8 deletions packages/react-strict-dom/src/types/StrictReactDOMProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,7 @@ export type StrictReactDOMProps = $ReadOnly<{
onTouchMove?: $FlowFixMe, // TEMP

// Other
autoCapitalize?: ?(
| 'off'
| 'none'
| 'on'
| 'sentences'
| 'words'
| 'characters'
),
autoCapitalize?: ?('none' | 'sentences' | 'words' | 'characters'),
autoFocus?: ?boolean,
children?: React.Node,
'data-layoutconformance'?: ?('classic' | 'strict'),
Expand Down
1 change: 1 addition & 0 deletions packages/react-strict-dom/src/types/renderer.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ type ReactNativeProps = {
text?: ?string
},
accessibilityViewIsModal?: ?boolean,
autoCapitalize?: ?('none' | 'sentences' | 'words' | 'characters'),
autoComplete?: ?string,
alt?: ?Stringish,
animated?: ?boolean, // non-standard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3204,6 +3204,7 @@ exports[`<html.*> "input" supports global attributes 1`] = `
}
}
accessibilityViewIsModal={true}
autoCapitalize="sentences"
enterKeyHint="go"
focusable={true}
importantForAccessibility="no-hide-descendants"
Expand Down Expand Up @@ -5491,6 +5492,7 @@ exports[`<html.*> "textarea" supports global attributes 1`] = `
}
}
accessibilityViewIsModal={true}
autoCapitalize="sentences"
enterKeyHint="go"
focusable={true}
importantForAccessibility="no-hide-descendants"
Expand Down
Loading