-
-
Notifications
You must be signed in to change notification settings - Fork 295
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
Inaccessible with aria-activedescendent
being undefined
#139
Comments
Ahhh wonderful! My bad for not checking past PR's. I was just looking at the source code and noticed that the code was there and was expecting it to work haha. That is good to know though! Feel free to close this issue :) |
Bump.. I would love to use this library but the App Router incompatibility is blocking atm. |
FWIW this component works just fine on App Router as it is today. The title is a little mis-leading. I am going to update that now. We really just need a new release to come out. There hasn't been one published since March. See: https://github.com/pacocoursey/cmdk/releases/tag/v0.2.0 |
aria-activedescendent
being undefined
Closing since this issue was fixed in #108 |
Problem
When using cmdk with app router in nextjs 13 cmdk doesn't respect screen readers.
Note: I have not tested to see if this problem exists with client side apps at all. So it could just be a bug with version 0.2.0. But that is assuming the cmdk docs site hasn't been deployed since 0.2.0 was released since it is working on that site right now.
Current Diagnosis
It seems that each of the
Command.Item
's are missing theirid
. Which meansaria-activedescendent
isundefined
and therefore not reading out what the currently selected / highlighted item is in voice over. Which I assume means that this returningundefined
Reproduction
Repo: https://github.com/adamaho/cmdk-next13-app-router
You can also inspect the DOM here: https://ui.shadcn.com/docs/components/command and notice the same symptoms mentioned above. Which is a site that uses cmdk with app router.
Version
0.2.0
The text was updated successfully, but these errors were encountered: