From 0e1a55ae671bccf9310cf96f974977f6b6f21bca Mon Sep 17 00:00:00 2001 From: Ben Rogerson Date: Thu, 18 Aug 2022 21:45:56 +0930 Subject: [PATCH] Add `enterKeyHint` to list of `htmlInputAttrs` (#4377) This PR adds the missing `enterKeyHint` attribute which allows the customisability of the enter key on virtual keyboards. In my usage, this fixes an issue on Android where the enter button character doesn't reflect the action it performs. Closes #4371 --- src/lib/htmlPropsUtils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/htmlPropsUtils.js b/src/lib/htmlPropsUtils.js index cbd84fb3b8..f6e33f27a5 100644 --- a/src/lib/htmlPropsUtils.js +++ b/src/lib/htmlPropsUtils.js @@ -14,6 +14,7 @@ export const htmlInputAttrs = [ 'autoFocus', 'checked', 'disabled', + 'enterKeyHint', 'form', 'id', 'inputMode',