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

aria-expanded is not initialised #978

Closed
flaviusdolca opened this issue Sep 1, 2023 · 0 comments · Fixed by #979
Closed

aria-expanded is not initialised #978

flaviusdolca opened this issue Sep 1, 2023 · 0 comments · Fixed by #979

Comments

@flaviusdolca
Copy link
Contributor

flaviusdolca commented Sep 1, 2023

This issue refers to the rc-select component when using antd.

When the component is initialised, the aria-expanded attribute is not present. It will appear only after the first toggling of the select component. This will trigger the a11y scanner.

This issue can be fixed by changing the following line of code:

https://github.com/react-component/select/blob/master/src/Selector/Input.tsx#L94

to:
'aria-expanded': open || false,

#979

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

Successfully merging a pull request may close this issue.

1 participant