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
When the component lives in a form and one of the suggested items is selected using keyboard (arrows + hitting enter), the form is submitted.
From the source code I see you didn't include event.preventDefault() probably on purpose? Could this be at least configurable by props? There's no other way how to prevent this as you don't pass the event to the onSuggestSelect method.
The text was updated successfully, but these errors were encountered:
Does it make sense to prevent always? Is it a use case to submit on select via enter? Sounds more like a bug, because it does not submit on other select modes (e.g. click) which is inconsistent.
When the component lives in a form and one of the suggested items is selected using keyboard (arrows + hitting enter), the form is submitted.
From the source code I see you didn't include
event.preventDefault()
probably on purpose? Could this be at least configurable by props? There's no other way how to prevent this as you don't pass the event to theonSuggestSelect
method.The text was updated successfully, but these errors were encountered: