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

Combobox Unwanted Auto Selected When Similar Dropdown Items #10902

Open
desaroxx opened this issue Nov 6, 2023 · 3 comments
Open

Combobox Unwanted Auto Selected When Similar Dropdown Items #10902

desaroxx opened this issue Nov 6, 2023 · 3 comments
Labels
0.40 bug Something isn't working ng15 Angular 15 support

Comments

@desaroxx
Copy link

desaroxx commented Nov 6, 2023

Is this a bug, enhancement, or feature request?

bug

Describe your proposal.

No autoselection of dropdown items is performed

Can you handle that on the application side

Which versions of Angular and Fundamental Library for Angular are affected? Please, specify the exact version. (If this is a feature request, use current version.)

If this is a bug, please provide steps for reproducing it; the exact components you are using;

This is a continuation of #10429

With fix provided #10570 the following case is fixed:

Case 1: Identical names
Dropdown menu items:

  1. Banana
  2. Banana

Steps to Reproduce:

  1. Enter "Banan" in the search field
  2. add letter "n" to the search field
  3. none of the "Banana" items get selected

Case 2: Extending Names
Dropdown menu items:

  1. Banana
  2. Banana Shake

Steps to Reproduce:

  1. Enter "Banan" in the search field
  2. add letter "n" to the search field
  3. NOT EXPECTED: "Banana" items get selected, EXPECTED: "Banana" is not selected

Please provide relevant source code (if applicable).

Please provide stackblitz example(s).

In case this is Accessibility related topic, did you consult with an accessibility expert? If not, please do so and share their recommendations.

Did you check the documentation and the API?

Did you search for similar issues?

Is there anything else we should know?

We need this fix for 0.40.X

@desaroxx
Copy link
Author

desaroxx commented Nov 6, 2023

Case 1 behaves as expected, but case 2 doesn't.

@droshev
Copy link
Contributor

droshev commented Nov 7, 2023

@desaroxx We tried both scenarios on 0.40.4 and both are working as expected (unless we didn't follow the exact steps). See the recordings
case2
case1

@desaroxx
Copy link
Author

desaroxx commented Nov 8, 2023

I made a mistake in the initial statement above:

For step to it needs to be the letter "a" instead of "n"

I reproduced the issue here:

Screen Recording 2023-11-08 at 12 03 28

Note that "Banana" is set on the FormControl.value property as soon as the search query matches "Banana", but this is potentially a substring match for "Banana Shake"

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

No branches or pull requests

3 participants