We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.0.0-beta.32
https://github.com/sjahns/vue-test-utils-issue-event-cancelable
npm install
npm run test:unit
It should not cause an error
It does end in an error
This happens due to createDOMEvent() setting all given options on the event object. But cancelable is read only.
To me it looks like the event is created correctly with cancelable:false but createDOMEvent() will also try to set the property.
I found this while testing a component which does:
if(event.cancelable) { event.preventDefault(); }
The text was updated successfully, but these errors were encountered:
I (think) we have a PR in progress for this #1460
Sorry, something went wrong.
Closing as #1460 is merged.
No branches or pull requests
Version
1.0.0-beta.32
Reproduction link
https://github.com/sjahns/vue-test-utils-issue-event-cancelable
Steps to reproduce
npm install
npm run test:unit
What is expected?
It should not cause an error
What is actually happening?
It does end in an error
This happens due to createDOMEvent() setting all given options on the event object. But cancelable is read only.
To me it looks like the event is created correctly with cancelable:false but createDOMEvent() will also try to set the property.
I found this while testing a component which does:
if(event.cancelable) {
event.preventDefault();
}
The text was updated successfully, but these errors were encountered: