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

fix(highlightedIndex): do not highlight disabled items #1601

Merged
merged 1 commit into from
May 17, 2024

Conversation

silviuaavram
Copy link
Collaborator

@silviuaavram silviuaavram commented May 16, 2024

What:
Fix all the scenarios when an item can be highlighted even if it's disabled.

Why:
Fixes #1599.

How:
Check if item is disabled when setting the highlightedIndex via reset, imperative set, as well as user actions such as open on click / arrow down and up.

Checklist:

  • Documentation
  • Tests
  • TypeScript Types
  • Flow Types
  • Ready to be merged

@silviuaavram silviuaavram force-pushed the fix/disabled-highlighted-items branch from 1f53403 to 5ffbd15 Compare May 17, 2024 06:48
@silviuaavram silviuaavram merged commit 4bf894b into master May 17, 2024
3 checks passed
@silviuaavram silviuaavram deleted the fix/disabled-highlighted-items branch May 17, 2024 07:03
Copy link

🎉 This PR is included in version 9.0.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Disabled items are highlighted and are selectable by pressing enter after input value change
1 participant