-
Notifications
You must be signed in to change notification settings - Fork 470
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
fireEvent.drop
API behaves not as expected about preventDefault in Browser and js env
#1327
Comments
fireEvent.drop
API behaves inconsistently with browser behavior fireEvent.drop
API behaves not as expected
fireEvent.drop
API behaves not as expectedfireEvent.drop
API behaves not as expected about preventDefault in Browser and js env
Hi @electroluxcode, thanks for taking the time to open this. |
@MatanBobi Thank you very much for your reply. The reason I call This is a snippet of react-dnd code where this logic is encapsulated within the and after reading your reply, I looked into user-event, but it seems there are no methods related to and regarding the browser's behavior you mentioned, you can refer to https://html.spec.whatwg.org/multipage/dnd.html#dndevents. |
Reproduction:
What you did:
run it in brower and testing env
Problem description:
when I run this component in the browser,
onDragOver
isn't executed due toe.preventDefault()
in theonDragStart
test case,but
onDragOver
is executed in testing env afteronDragStart
Expect
ii should prevent
onDragOver
fn in test envThe text was updated successfully, but these errors were encountered: