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

selectTree使用treeData,添加showSearch,搜索没有的值,报js错误 #2082

Closed
1 task done
xuejiaomeng opened this issue Apr 14, 2020 · 4 comments
Closed
1 task done
Labels

Comments

@xuejiaomeng
Copy link

xuejiaomeng commented Apr 14, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.5.1

Environment

vue 2.5.17 ,Chrome浏览器, mac

Reproduction link

Edit on CodeSandbox

Steps to reproduce

1.选择一个值
2.再到搜索框中输入 列表中没有的字段
3.点击任意地方,是输入框失去焦点,问题出现了 :
Cannot read property 'domTreeNodes' of null
at VueComponent.eval (https://wvz9o.csb.app/node_modules/ant-design-vue/lib/vc-tree-select/src/Select.js:281:45)
4.Error in nextTick: "TypeError: Cannot read property 'domTreeNodes' of null", 未修复到,搜索没有的值之后,鼠标移开,使该组件失去焦点,再次点击下拉,还是会报上面的错,单选的情况,多选没有该问题

What is expected?

不报错

What is actually happening?

这个问题在1.4.*的版本是没有,1.5.0到1.5.3 都有这个问题

@xuejiaomeng
Copy link
Author

Error in nextTick: "TypeError: Cannot read property 'domTreeNodes' of null", 未修复到,搜索没有的值之后,鼠标移开,使该组件失去焦点,再次点击下拉,还是会报上面的错

@xuejiaomeng
Copy link
Author

if (!isMultiple && selectorValueList.length && open && _this2.popup&&_this2.popup.hasOwnProperty('domTreeNodes'))

@xuejiaomeng
Copy link
Author

单选的情况,多选没有该问题

@github-actions
Copy link

github-actions bot commented May 8, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants