ItamarWMDE added a comment.
**Task Breakdown Notes**: - Do we want to avoid all scenarios where enter submits the form? According to @Erdinc_Ciftci_WMDE the preferred way to submit the form would be by tabbing to the submit button and pressing enter. However, submitting upon enter keypress event emitted from the focused field is not out of the question, as long as the value was already selected in the particular case of lookup fields. - Leave the decision to the implementer until we know more about the potential implementation possibilities? **Possible plan of action**: 1. Investigate when and how the submit event is triggered, and the focus moves on to other validatable fields 2. Prevent a submit event from being fired in each input wrapper components or the item lookup component, before any option selected. - When there are no results, the menu stays open, otherwise a selection is made or the text remains, the menu closes and in any case focus remains on the input. 3. Ensure that the submit functionality is maintained for other cases, depending on chosen implantation. TASK DETAIL https://phabricator.wikimedia.org/T305359 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: ItamarWMDE Cc: ItamarWMDE, Lydia_Pintscher, Nikki, Erdinc_Ciftci_WMDE, Sarai-WMDE, Aklapper, Michael, Astuthiodit_1, STHart, karapayneWMDE, Invadibot, maantietaja, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Volker_E, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org