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] Highlight color disappears on search when first option does not change #452

Open
melcor76 opened this issue Feb 8, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@melcor76
Copy link

melcor76 commented Feb 8, 2024

Describe the bug
When we filter the first option (or the selected one) gets highlighted.
But when narrowing down the search and the first option is the same then the highlight disappears.
I can see that the class mat-mdc-option-active is not there as it should be.

To Reproduce

  1. Go to https://stackblitz.com/github/bithost-gmbh/ngx-mat-select-search-example
  2. Click on one of the select lists, for example, "Single selection with custom clear icon"
  3. Start writing f..r..a
  4. See error --> The first option is not highlighted

Expected behavior
I expect the first option to be highlighted.

Screenshots
image

Desktop (please complete the following information):

  • OS: iOS
  • Browser: Chrome
  • Version: 121.0.6167.139

Additional context
The first option is still active in the sense that when I use the arrow key down then it goes to the 2nd option.

@melcor76 melcor76 added the bug Something isn't working label Feb 8, 2024
@macjohnny
Copy link
Member

@melcor76 thanks for reporting. do you want to fix this?

@melcor76
Copy link
Author

melcor76 commented Feb 9, 2024

@melcor76 thanks for reporting. do you want to fix this?

@macjohnny I can add a ticket for it at work but it's low priority so not sure when I'll get a chance to look at it.

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

2 participants