Skip to content

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

Merged
silviuaavram merged 1 commit intomasterfrom
fix/disabled-highlighted-items
May 17, 2024
Merged

fix(highlightedIndex): do not highlight disabled items#1601
silviuaavram merged 1 commit intomasterfrom
fix/disabled-highlighted-items

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
@silviuaavram silviuaavram deleted the fix/disabled-highlighted-items branch May 17, 2024 07:03
@github-actions
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