Skip to content

Commit

Permalink
ariaActivedescendant = false not valid aria
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan-Hall authored and colinrotherham committed Jan 17, 2024
1 parent 24e5bce commit 3679a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ export default class Autocomplete extends Component {
const ariaProps = {
'aria-describedby': ariaHint ? assistiveHintID : null,
'aria-expanded': menuOpen ? 'true' : 'false',
'aria-activedescendant': optionFocused ? `${id}__option--${focused}` : false,
'aria-activedescendant': optionFocused ? `${id}__option--${focused}` : null,
'aria-owns': `${id}__listbox`,
'aria-autocomplete': (this.hasAutoselect()) ? 'both' : 'list'
}
Expand Down

0 comments on commit 3679a4c

Please sign in to comment.