-
Notifications
You must be signed in to change notification settings - Fork 932
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
Japanese IME not working when controlling inputValue
in useCombobox
#1452
Comments
Hi! Is there something we can fix in |
Still exists in v7. Here's the reproduce codesandbox https://codesandbox.io/s/quizzical-williamson-c8tsyg?file=/src/hooks/useCombobox/basic-usage.js |
To help finding the cause, I wrote a similar controlled input https://codesandbox.io/s/focused-poincare-zpky86?file=/src/App.js |
Also, related #1108 |
Having the same issue here. Not a clean solution at all, but for now overriding the |
downshift
version: 6.1.12node
version: 14.19.0yarn
version: 1.22.17Relevant code or config
What you did:
When entering Japanese (or any IME language) into a combobox that controls inputValue, IME composition fails.
This first screenshot renders a dropdown with
inputValue
controlled. I clicked the input to focus it and then typed "j" + "a".What happened:
The IME editor failed to open to further compose the characters before committing them. What I should have saw would have been this:
Additionally, it appears that the
compositionend
event is never fired when inputValue is controlled.Problem description:
When useCombobox is controlling
inputValue
and updating it withonInputValueChange
, IME composition exits before showing the composition editor.Suggested solution:
Wrap getInputProps's onChange handler with the spirit of the following:
The text was updated successfully, but these errors were encountered: