mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-02-17 13:20:52 +08:00
fix(base-picker): multiple search select will close when click on activator
This commit is contained in:
parent
7b7b147329
commit
df93a8d6a0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user