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]: Typing Japanese characters and selected search result selects wrong result #775

Open
SanderMuller opened this issue Sep 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@SanderMuller
Copy link

SanderMuller commented Sep 12, 2024

Bug description

When typing out Japanese special characters, in this case クイズ the search result is not selected when clicking the search result, but another option (first option, not part of the search results) is selected.

This does NOT happen when copy pasting these characters, only when typing them out.

Might be useful: how to install a Japanese keyboard

ed7e71ef-c164-4add-acca-985c26de85a9
p.s. The loading state sticking in the GIF above is a separate issue, not relevant for this issue, in the code example https://tom-select.js.org/examples/remote/, self.settings.load = null; should be self.settings.load = (query, callback) => callback(); to clear the loading state on searches

Expected behavior

The sole search result to get selected after clicking on the sole search result

Steps to reproduce

  1. See codepen below
  2. Search for クイズ by typing it out (NOT pasting)
  3. Click on the sole search result
    X. See the first option getting select, which was not part of the search result

https://codepen.io/Rhinni/pen/bGPJNjV

Additional context

  • OS: Windows & Linux (works on Mac)
  • Browser: Chrome and other Chromium browsers, and webkit browsers (it does work in FireFox, though)
  • Version: 128.0.6613.138 of Chrome, but could reproduce on on other Chromium browsers like Opera
  • Device: Desktop
@SanderMuller SanderMuller added the bug Something isn't working label Sep 12, 2024
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

No branches or pull requests

1 participant