-
Notifications
You must be signed in to change notification settings - Fork 931
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
[Feedback] New input focus behaviour added in v7.0.0 #1439
Comments
Hi, thanks for the feedback! From the looks of it, InputFocus should become InputClick, and it should toggle. InputFocus should not do anything, actually, and can be removed. Will keep the issue for tracking. |
@alex-mcgovern you can check the PR attached and let me know what you think. I tried to come up with some sort of middle ground. I cannot do both focus and toggle click support since that will require additional hacks in useCombobox code. I'd rather not do that and instead just remove the focus behaviour without delivering a breaking change. But let me know if you think there is a better way. |
@silviuaavram Thanks for this, will check it out asap! |
Hi @silviuaavram I've been moved onto something that doesn't use downshift, so can't really give this any attention — if you're happy with the changes, don't let me hold them up. |
Covered in v8 |
downshift
version: 7.0.1node
version: v18.12.1npm
(oryarn
) version: 8.19.2This issue relates to new Downshift behaviour of opening menu on input focus, added in v7.0.0
permalink
toggleMenu
fromuseCombobox
to input'sonClick
handler, that way the user can toggle the menu after input has been focused should they wisha. reconsider this behaviour
b. allow disabling this behaviour, perhaps as an option passed to
getInputProps
c. consider adding opening/toggling menu on input click as well as focus
For what it's worth, I am able to override this in
stateReducer
passed touseCombobox
, but it took a few minutes to figure out, and isn't exactly intuitive to do.Hope this feedback is useful.
The text was updated successfully, but these errors were encountered: