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
Keyboard events for the Enter key seem to be getting swallowed silently somewhere.
I just upgraded a search bar I'd made in v6 to v7 and lost the functionality I used to have. Attempting to submit a value that doesn't match any data option is impossible without another element or event, and even selecting a data option now requires an arrow key or mouse click rather than Enter completing the selection.
What version of @mantine/* packages do you have in package.json? (Note that all @mantine/* packages must have the same version in order to work correctly)
7.2.2
If possible, please include a link to a codesandbox with a minimal reproduction
I assumed this was coming from a preventDefault() in one of the handlers for the "Enter" key, but the only instance I could find was in use-combobox-target-props.js and all efforts to fix it locally have been in vain.
The ctx.store.dropdownOpened condition fires every time, regardless of whether or not the dropdown is opened or an option is selected. I'd love to contribute if anyone can help me narrow down the root cause!
The text was updated successfully, but these errors were encountered:
What package has an issue?
@mantine/core
Describe the bug
Keyboard events for the Enter key seem to be getting swallowed silently somewhere.
I just upgraded a search bar I'd made in v6 to v7 and lost the functionality I used to have. Attempting to submit a value that doesn't match any
data
option is impossible without another element or event, and even selecting adata
option now requires an arrow key or mouse click rather than Enter completing the selection.What version of @mantine/* packages do you have in package.json? (Note that all @mantine/* packages must have the same version in order to work correctly)
7.2.2
If possible, please include a link to a codesandbox with a minimal reproduction
https://codesandbox.io/p/sandbox/condescending-sanderson-d9ng96
Do you know how to fix the issue
No
Do you want to send a pull request with a fix?
Yes
Possible fix
I assumed this was coming from a
preventDefault()
in one of the handlers for the "Enter" key, but the only instance I could find was in use-combobox-target-props.js and all efforts to fix it locally have been in vain.The
ctx.store.dropdownOpened
condition fires every time, regardless of whether or not the dropdown is opened or an option is selected. I'd love to contribute if anyone can help me narrow down the root cause!The text was updated successfully, but these errors were encountered: