-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Interactivity API: shiftKey
not pressed in pointer events, when keyboard('{Shift>}')
is active
#7007
Comments
It looks like you are using Can you try |
Thanks for the response. I did a quick check for three providers:
I'm using wdio for CI and preview for development mode. I will work on a smaller repro case. |
I made a minimal repro case over here: https://github.com/gossi/repro-vitest-interactivity-api It only happens for I checked for |
The global
This is a bug |
Describe the bug
Happy to switch to the new interactivity API (my code predates that API).
I'm doing a multi-select for a composite aria widget, so when holding down shift key and click an item, it will be selected.
Here is my idea to write the test code, as suggested at testing-library:
my code registers a
pointerup
event, which has this check:but when logging the "click" event, the
shiftKey
property is set tofalse
.Reproduction
Currently working on a public PR:
Code:
you might wanna put a
console.log()
/breakpoint at that function.Setup:
pnpm install
cd packages/aria-voyager
pnpm test:ui
tests/listbox/navigation/focus/with-multi-selection.test.ts
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: