Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ The text color of the placeholder string.
Possible values: `'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'`.

Specifies what action label (or icon) to present for the enter key on virtual
keyboards. Maps to the `enterkeyhint` attribute on web.
keyboards. Maps to the `enterKeyHint` attribute on web.

### secureTextEntry

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ describe('components/TextInput', () => {
const returnKeyType = 'previous';
const { container } = render(<TextInput returnKeyType={returnKeyType} />);
const input = findInput(container);
expect(input.getAttribute('enterkeyhint')).toEqual(returnKeyType);
expect(input.getAttribute('enterKeyHint')).toEqual(returnKeyType);
});

test('prop "secureTextEntry"', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-web/src/exports/TextInput/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,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