fix(base-picker): multiple search select will close when click on activator

This commit is contained in:
07akioni 2019-09-02 19:17:24 +08:00
parent 7b7b147329
commit df93a8d6a0

View File

@ -10,6 +10,7 @@
'n-base-picker--focus': patternInputFocused
}"
@click="handleClick"
@mousedown="handleMouseDown"
>
<template v-if="multiple && !filterable">
<!-- multiple -->
@ -267,6 +268,11 @@ export default {
handleClear (e) {
this.$emit('clear', e)
},
handleMouseDown (e) {
if (this.filterable && this.multiple) {
e.preventDefault()
}
},
handleClick () {
this.$emit('click')
if (this.filterable) {