Skip to content

Conversation

silviuaavram
Copy link
Collaborator

Based on #926, means to fix the issue where in hooks we can have aria-activedescendant with a item value even though the menu is closed and the item does not exist.

Fixes #921.

@silviuaavram silviuaavram changed the title Fix/add activedescendant only when open fix(hooks): only add aria-activedescendant when menu is open #926 Feb 17, 2020
@silviuaavram silviuaavram changed the title fix(hooks): only add aria-activedescendant when menu is open #926 fix(hooks): only add aria-activedescendant when menu is open Feb 17, 2020
@silviuaavram
Copy link
Collaborator Author

@all-contributors please add @stefanprobst for code, tests

@allcontributors
Copy link
Contributor

@silviuavram

I've put up a pull request to add @stefanprobst! 🎉

@silviuaavram silviuaavram force-pushed the fix/add-activedescendant-only-when-open branch from c7a1f61 to 3ed264c Compare February 17, 2020 18:14
@silviuaavram silviuaavram merged commit 28cdc02 into master Feb 17, 2020
@silviuaavram silviuaavram deleted the fix/add-activedescendant-only-when-open branch February 17, 2020 18:32
@silviuaavram
Copy link
Collaborator Author

🎉 This PR is included in version 5.0.3 🎉

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.

[useSelect] aria-activedescendant does not have valid value with controlled selectedItem
1 participant