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

The use of the dispatchEvent attribute on ie11 for true to throw an error:TypeError Object doesn't support this action #225

Closed
GreenMashimaro opened this issue Feb 1, 2018 · 1 comment · May be fixed by iamstoick/contenta_vue_nuxt#21
Labels

Comments

@GreenMashimaro
Copy link

const event = new CustomEvent(state, {

hi,I'm on ie11, set the dispatchEvent property to true,browser reported an error:"TypeError: 对象不支持此操作"
image
The reason for this error is, 'While a window.CustomEvent object exists, it cannot be called as a constructor. Instead of new CustomEvent(...), you must use e = document.createEvent('CustomEvent') and then e.initCustomEvent(...)'
There's an IE polyfill for the CustomEvent constructor at MDN.

@hilongjw
Copy link
Owner

@GreenMashimaro fixed at v1.2.0

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 a pull request may close this issue.

2 participants