Skip to content
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

V4 without jquery: workaround for ms edge defaultPrevented reset #23989

Merged
merged 1 commit into from
Sep 20, 2017

Conversation

alekitto
Copy link
Contributor

Related to #23586 (comment) and https://saucelabs.com/jobs/03afada422c7448d84ea067dee18906d failed job

Workaround for M$ Edge resetting defaultPrevented flag on dispatchEvent

@Johann-S I will really appreciate your opinion about this

@@ -23,6 +23,19 @@ const workingDefaultPrevented = (() => {
return e.defaultPrevented
})()

const defaultPreventedPreservedOnDispatch = typeof window.CustomEvent !== 'function' || (() => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to avoid double check of typeof window.CustomEvent you should move this IIFE where we add a polyfill to add CustomEvent

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and can you add a comment to explain the reason we added that please

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, done

@Johann-S
Copy link
Member

Thank you to handled that @alekitto ❤️

@Johann-S Johann-S merged commit a828cce into twbs:v4-without-jquery Sep 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants