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

[BUG] - Autocomplete dose not support IME #2121

Open
XNCOAISN opened this issue Dec 10, 2023 · 1 comment
Open

[BUG] - Autocomplete dose not support IME #2121

XNCOAISN opened this issue Dec 10, 2023 · 1 comment
Labels

Comments

@XNCOAISN
Copy link

NextUI Version

2.2.9

Describe the bug

When I select a choice from the IME, the input is confirmed.

With this bug, Japanese, Chinese and Korean users would not be able to use Autocomplete.

I don't know the exact cause, but it may be the same cause as this problem.
mantinedev/mantine#1565

Your Example Website or App

https://nextui.org/docs/components/autocomplete

Steps to Reproduce the Bug or Issue

nextui-issue.mov

Select "Cat"
Remove "at"
Enter "猫"
Deleted parts will be restored when you confirm the conversion.

Expected behavior

I don't want to change the value when converting

In the video example, when converting to "猫", you want to convert it to "C猫" instead of "Cat猫"

Screenshots or Videos

No response

Operating System Version

macOS

Browser

Chrome

@XNCOAISN XNCOAISN added the 🐛 Type: Bug Something isn't working label Dec 10, 2023
@ryo-manba
Copy link
Member

ryo-manba commented Apr 16, 2024

Hi @XNCOAISN ,

Using the allowsCustomValue prop should resolve this issue. Please try it out!
https://nextui.org/docs/components/autocomplete#custom-value

EDIT:
It might be better to solve this problem without specifying allowsCustomValue.
I've submitted a PR to upstream and it will probably be fixed once this is reflected.

autocomplete_with_custom_value.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants