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

[Bug]ie11下manualInvokeElementOnLoad方法报错 #1146

Closed
ilovejlj opened this issue Dec 10, 2020 · 1 comment
Closed

[Bug]ie11下manualInvokeElementOnLoad方法报错 #1146

ilovejlj opened this issue Dec 10, 2020 · 1 comment

Comments

@ilovejlj
Copy link

ilovejlj commented Dec 10, 2020

[Bug]ie11下manualInvokeElementOnLoad方法报错

What happens?

ie11下manualInvokeElementOnLoad方法报错

最小可复现仓库

为节约大家的时间,无复现步骤的 ISSUE 会被关闭,提供之后再 REOPEN

复现步骤,错误日志以及相关配置

manualInvokeElementOnLoad这个方法里使用了new CustomEvent('load')来生成一个load事件,看了下caniuse上的介绍,说ie11下不能new CustomEvent,需要e = document.createEvent('CustomEvent')然后e.initCustomEvent(...)

相关环境信息

  • qiankun 版本: 2.3.1
  • 浏览器版本:ie11
  • 操作系统:windows
@ilovejlj ilovejlj changed the title [Bug]请遵循下文模板提交问题,否则您的问题会被关闭 [Bug]ie11下manualInvokeElementOnLoad方法报错 Dec 10, 2020
@gongshun
Copy link
Collaborator

https://qiankun.umijs.org/zh/faq#%E5%A6%82%E4%BD%95%E7%BB%99-ie-%E6%89%93%E8%A1%A5%E4%B8%81%EF%BC%9F

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants