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

Autocomplete: In search_numbers mode, non-alphanumeric characters are not matched #4293

Open
kimroen opened this issue Nov 19, 2024 · 0 comments

Comments

@kimroen
Copy link
Contributor

kimroen commented Nov 19, 2024

🐛 Bug Report

When using an Autocomplete component with search_numbers set to true, non-alphanumeric characters like "ø" are not matched.

To Reproduce

Steps to reproduce the behavior:

  1. Render <Autocomplete /> with search_numbers={true}, and a data set that contains a string with ø inside
  2. Type something that should match

Here's a code sandbox demonstrating this issue:

https://codesandbox.io/p/sandbox/stoic-feather-8ymh7s

The top input does not use numbers mode. Observe that typing "Røen" matches one item
CleanShot 2024-11-19 at 13 35 10

The bottom input uses numbers mode. Typing "Røen" shows no matches.
CleanShot 2024-11-19 at 13 35 44

Expected behavior

The matching name is highlighted and is part of the filtered result set.

The codesandbox example also includes an account number formatted in different ways. This is to illustrate why we are using numbers mode here. In the top version typing "12345678901" only matches the first account, but the bottom one matches all three.

CleanShot 2024-11-19 at 13 35 31
CleanShot 2024-11-19 at 13 35 56

Eufemia Version

Browser JS: 10.56.0
Browser CSS: 10.56.0

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

No branches or pull requests

1 participant