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 getTarget method in [Bug Report] iView causes errors #5982

Open
SBLeeStone opened this issue Jun 27, 2019 · 2 comments
Open

The getTarget method in [Bug Report] iView causes errors #5982

SBLeeStone opened this issue Jun 27, 2019 · 2 comments

Comments

@SBLeeStone
Copy link

@SBLeeStone SBLeeStone commented Jun 27, 2019

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?

因为报错使弹框无法弹出

@iview-bot
Copy link
Collaborator

@iview-bot iview-bot commented Jun 27, 2019

Translation of this issue:

Environment

Vue 2.5.20 Operating System Windows Chrome Version 69.0.3497.81 (Official Version) (64-bit)

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 instance of window.Node?Node: document.querySelector (node);
}
Causing error reporting
Vue.js?Ba4c:1828 DOMException: Failed to execute'query Selector'on'Document':'[object HTML BodyElement]' is not a valid selector.
Fail the < Model > Component Bulletbox

What is expected?

Bomb-frame Component Ejected Successfully

What is actually happening?

Bombs can't pop up because of an error.

@iview-bot iview-bot changed the title [Bug Report]iview中 getTarget方法导致报错 The getTarget method in [Bug Report] iView causes errors Jun 27, 2019
@xuqingxi
Copy link

@xuqingxi xuqingxi commented Oct 21, 2019

i have the same problem when use the Modal compontent,in fact anyother component use the "transfer" attr,and will cause this problem

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.