mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
fix(select): shouldn't focus input when closing tag with filterable (#1173)
Co-authored-by: unknown <liyang@xiaoyouzi.com>
This commit is contained in:
parent
5fa436b6a0
commit
68d203dff9
@ -1,5 +1,9 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
|
||||||
|
- Fix `n-select` focus input when closing tag with `filterable` , closes [#1170](https://github.com/TuSimple/naive-ui/issues/1170).
|
||||||
|
|
||||||
## 2.18.2 (2021-09-14)
|
## 2.18.2 (2021-09-14)
|
||||||
|
|
||||||
### Feats
|
### Feats
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
|
||||||
|
- 修复 `n-select` `filterable` 下关闭标签 input 光标聚焦问题,关闭 [#1170](https://github.com/TuSimple/naive-ui/issues/1170)
|
||||||
|
|
||||||
## 2.18.2 (2021-09-14)
|
## 2.18.2 (2021-09-14)
|
||||||
|
|
||||||
### Feats
|
### Feats
|
||||||
|
@ -494,7 +494,6 @@ export default defineComponent({
|
|||||||
changedValue.push(option.value)
|
changedValue.push(option.value)
|
||||||
patternRef.value = ''
|
patternRef.value = ''
|
||||||
}
|
}
|
||||||
focusSelectionInput()
|
|
||||||
doUpdateValue(changedValue, getMergedOptions(changedValue))
|
doUpdateValue(changedValue, getMergedOptions(changedValue))
|
||||||
} else {
|
} else {
|
||||||
if (tag && !remote) {
|
if (tag && !remote) {
|
||||||
|
Loading…
Reference in New Issue
Block a user