Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upThe getTarget method in [Bug Report] iView causes errors #5982
Comments
Translation of this issue: EnvironmentVue 2.5.20 Operating System Windows Chrome Version 69.0.3497.81 (Official Version) (64-bit) Reproduction linkhttp://10.121.44.170:8882/app/itoa Steps to reproduceFunction getTarget (node){ What is expected?Bomb-frame Component Ejected Successfully What is actually happening?Bombs can't pop up because of an error. |
i have the same problem when use the Modal compontent,in fact anyother component use the "transfer" attr,and will cause this problem |
Environment
Vue 2.5.20 操作系统windows chrome 版本 69.0.3497.81(正式版本) (64 位)
Reproduction link
http://10.121.44.170:8882/app/itoa
Steps to reproduce
function getTarget(node) {
if (node === void 0) {
node = document.body;
}
if (node === true) {
return document.body;
}
return node instanceof window.Node ? node : document.querySelector(node);
}
导致报错
vue.js?ba4c:1828 DOMException: Failed to execute 'querySelector' on 'Document': '[object HTMLBodyElement]' is not a valid selector.
使组件弹框失败
What is expected?
弹框组件成功弹出
What is actually happening?
因为报错使弹框无法弹出