Skip to content

How to set aria-activedescendant attribute value #4888

Answered by ian-leggett
ian-leggett asked this question in Q&A
Discussion options

You must be logged in to vote

My solution so far is to get the event.currentTarget.getAttribute('id')) value and pass that into a useState hook. This then allows the selected elements attributes such as the id to be passed around as props. Maybe there is a better way but I think this will do for now :-)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ian-leggett
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant