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

多选时,点击已选值会删除该已选值 #244

Closed
dhl28 opened this issue Apr 15, 2019 · 6 comments
Closed

多选时,点击已选值会删除该已选值 #244

dhl28 opened this issue Apr 15, 2019 · 6 comments

Comments

@dhl28
Copy link

dhl28 commented Apr 15, 2019

动作:点击已选值
期望:展开下拉树
实际:展开下拉树,并且清除了该已选值

@Lensgcx
Copy link

Lensgcx commented May 9, 2019

同上

@Whisky-Zuo
Copy link

问题解决了嘛?

@yangxiyangxi
Copy link

这个确实是个坑,后来我想到了用css样式禁用选中的标签的点击,加了这个就好了.vue-treeselect__multi-value-label{
pointer-events: none
}
.vue-treeselect__icon.vue-treeselect__value-remove{
pointer-events: auto
}

@yangxiyangxi
Copy link

上面复制漏了一点,应该是
.vue-treeselect__multi-value-item,.vue-treeselect__multi-value-label{
pointer-events: none
}
.vue-treeselect__icon.vue-treeselect__value-remove{
pointer-events: auto
}

@riophae
Copy link
Owner

riophae commented Aug 18, 2019

你好,这个就是故意这样设计的。如果确有需要的话,参照上面的方法应该可行。

@riophae riophae closed this as completed Aug 18, 2019
@zwd862375698
Copy link

这样的话slot="value-label" 里面自定义的事件也不能触发了

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

6 participants