You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We return a keyboardState in userEvent.keyboard that can be used to continue typing with that state (e.g. button still being pressed) but we currently don't support sharing state between our keyboard and pointer APIs like clickfeat: honor keyboardState in pointer events #713
Add an abstract API that allows to e.g. press a mouse button without releasing it, keeps track of pointer state and will be used internally by all convenience functions like click or dblClick.
Number 1 and 2 feel like how DOM Testing Library exports the unbound queries as well as pre-bound ones on screen. For that reason I kind of like the idea of both of those.
Problem description:
focus
andblur
so that we can triggerchange
events. See fix(keyboard): dispatch change event on blur #703keyboardState
inuserEvent.keyboard
that can be used to continue typing with that state (e.g. button still being pressed) but we currently don't support sharing state between ourkeyboard
and pointer APIs likeclick
feat: honorkeyboardState
in pointer events #713Press Ctrl
->Move Cursor
->Press Mouse Button
->Release Ctrl
->Release Mouse Button
- See e.g. add pointerDown, pointerMove and pointerUp events for API #638value
property and selection on the element. - See e.g. fix(type): type a space into email and url input (#479) #712 (comment)Suggested solution:
Add an abstract API that allows to e.g. press a mouse button without releasing it, keeps track of pointer state and will be used internally by all convenience functions like
click
ordblClick
.feat: pointer API #742
Add a
userEvent.setup
API that exports all our APIs bound to a shared state.feat: setup #743
Use one abstraction to keep track of initial value, display value and selection across all our APIs.
Our work around should be applied to the active element and be added to the capture phase of
focus
byuserEvent.setup
or any other of our APIs that is called earlier.See https://github.com/testing-library/user-event/blob/main/src/keyboard/shared/fireInputEvent.ts and https://github.com/testing-library/user-event/blob/main/src/utils/edit/selectionRange.ts
feat: document state #744
The text was updated successfully, but these errors were encountered: