-
Notifications
You must be signed in to change notification settings - Fork 592
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
最新版子应用下 document.body 还是会出现逃逸问题 #1452
Labels
fixed
Issue fixed
Comments
如果子应用需要把元素挂载到body,在iframe模式下确实一直有这个问题,现在会把元素挂载到主应用的body上面,原因就是子应用的document.body指向了父应用的body |
发现iframe模式下子应用的多个第三方的依赖因为body出现问题了,像antd的message,会挂载到主应用上面而无法消失,handsontable会在失去焦点时崩溃,还有视频播放插件等,with模式不存在这样的问题,但是vite项目又无法使用with模式 |
请问解决了吗?我这边使用1.0.0-rc.20版本,预加载还是会出现这个问题。 |
还没测试,目前micro-app会改变body标签,是个硬伤,内部样式会有不兼容的情况 |
@ncwsszs ,可以提供一个demo,我来看看 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
子应用下 document.body 还是会出现逃逸问题,目前限制在子应用内操作,会直接到主应用的body下
效果如下:

子应用源代码:

主应用源代码:

环境信息
The text was updated successfully, but these errors were encountered: