Skip to content

Commit

Permalink
[change] DOM prop enterKeyHint capitalization
Browse files Browse the repository at this point in the history
React 17 added support for this prop so it now requires a camelCase form.

Close necolas#1707
  • Loading branch information
janicduplessis authored and necolas committed Feb 5, 2021
1 parent c835ce9 commit cb503dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exports/TextInput/index.js
Expand Up @@ -361,7 +361,7 @@ const TextInput = forwardRef<TextInputProps, *>((props, forwardedRef) => {
supportedProps.classList = classList;
// 'auto' by default allows browsers to infer writing direction
supportedProps.dir = dir !== undefined ? dir : 'auto';
supportedProps.enterkeyhint = returnKeyType;
supportedProps.enterKeyHint = returnKeyType;
supportedProps.onBlur = handleBlur;
supportedProps.onChange = handleChange;
supportedProps.onFocus = handleFocus;
Expand Down

0 comments on commit cb503dd

Please sign in to comment.