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]: IME enter key issue in TagsInput #1441

Open
ty-v1 opened this issue Nov 20, 2024 · 1 comment · May be fixed by #1460
Open

[Bug]: IME enter key issue in TagsInput #1441

ty-v1 opened this issue Nov 20, 2024 · 1 comment · May be fixed by #1460
Labels
bug Something isn't working

Comments

@ty-v1
Copy link

ty-v1 commented Nov 20, 2024

Environment

Node version: v20.12.1
Package manager: [email protected]
Radix Vue version: 1.9.10
Vue version: 3.5.13
CSS framework: [email protected]
OS: macOS 15.1
Browser: Chrome 131.0.6778.86

Link to minimal reproduction

https://codesandbox.io/p/devbox/radix-vue-tagsinput-japanse-ime-yh2h2x

Steps to reproduce

ime

In this GIF, I tried to add the tag アメリカ合衆国 (the USA) following these steps:

  1. Input あめりか (amerika)
  2. Select アメリカ from the IME candidates
  3. Press the Enter key
    • Expected Behavior: The text アメリカ remains in the input field, and no tag is added.
    • Actual Behavior: The text アメリカ remains in the input field, but an アメリカ tag is added.
  4. Input がっしゅうこく (gassyuukoku)
  5. Select 合衆国 from the IME candidates
  6. Press the Enter key
    • Expected Behavior: The text アメリカ合衆国 remains in the input field, and no tag is added.
    • Actual Behavior: The text 合衆国 remains in the input field and a アメリカ合衆国 tag is added.
  7. Press the Enter Key

Describe the bug

I found an issue related to the Japanese IME in TagsInput.
The Enter key has two functions for IME users:

  1. Inputting characters (same as ASCII users)
  2. Confirming character conversion

TagsInput cannot handle the second pattern correctly.

Reference: https://en.wikipedia.org/wiki/Japanese_input_method#Kana_to_kanji_conversion

Expected behavior

TagsInput does not add any tags when user confirms character conversion with the enter key.

Context & Screenshots (if applicable)

No response

@ty-v1 ty-v1 added the bug Something isn't working label Nov 20, 2024
@ty-v1 ty-v1 changed the title [Bug]: IME Enter Key Issue in TagsInput [Bug]: IME enter key issue in TagsInput Nov 20, 2024
@zernonia
Copy link
Member

@shoma-mano do you think this is similar to what you fixed #1430 ? 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants