Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onChange and onKeyDown not firing with "tab" only #5954

Open
xdiaz96 opened this issue Aug 29, 2024 · 0 comments
Open

onChange and onKeyDown not firing with "tab" only #5954

xdiaz96 opened this issue Aug 29, 2024 · 0 comments
Labels
issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet

Comments

@xdiaz96
Copy link

xdiaz96 commented Aug 29, 2024

I'm trying to use react-select with nested nodes to give users the option to select more specific options relating to parent topics/products. Selection options like clicking the mouse, pressing "Enter" and "Space" all work without issue. For some reason Tab alone is not working. As I mentioned the options are navigable nodes with parents and children. if the previously selected option wasn't a leaf - a node with no children - "Tab" and only tab will not work if you try to use it again as a selection option, instead it will call onInputBlur() and completely skip calling onKeyDown or onChange

So my question is are there any known interactions that could cause onChange or onKeyDown to not fire specifically with tab as a selection option? The code is built on top of another teams code so checking the callstack only returns minified transpiled code that can't really be interpreted.

our current version is ["react-select": "^5.8.0"]

@xdiaz96 xdiaz96 added the issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet label Aug 29, 2024
@xdiaz96 xdiaz96 changed the title onChange not firing consistently with "tab" onChange and onKeyDown not firing with "tab" only Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet
Projects
None yet
Development

No branches or pull requests

1 participant