You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that an Input can, for some unknown reason, show a "Next" value on the keyboard, rather than a "Go" (submit). Pressing Next appears to take you to the next tabIndex element on the page. However we need to catch the "enter" key being pressed to trigger a submit.
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
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
Problem description
We have recently encountered an issue with the keyboard displayed on Chromium on Android (https://support.google.com/chrome/thread/164815517/google-chrome-101-on-android-shows-tab-key-on-soft-keyboard-instead-of-enter-for-html-input-field?hl=en).
It seems that an
Input
can, for some unknown reason, show a "Next" value on the keyboard, rather than a "Go" (submit). Pressing Next appears to take you to the next tabIndex element on the page. However we need to catch the "enter" key being pressed to trigger a submit.Proposed solution
Update
lib/htmlPropsUtils.js
(https://github.com/Semantic-Org/Semantic-UI-React/blob/master/src/lib/htmlPropsUtils.js#L3) so thathtmlInputAttrs
supportsenterkeyhint
as a valid attribute to pass through to theInput
element on the DOM.The text was updated successfully, but these errors were encountered: