fix(select): shouldn't focus input when closing tag with f ilterable (#1173)

Co-authored-by: unknown <liyang@xiaoyouzi.com>
This commit is contained in:
小魔王 2021-09-15 02:08:09 +08:00 committed by GitHub
parent 5fa436b6a0
commit 68d203dff9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,9 @@
# 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)
### Feats

View File

@ -1,5 +1,9 @@
# CHANGELOG
### Fixes
- 修复 `n-select` `filterable` 下关闭标签 input 光标聚焦问题,关闭 [#1170](https://github.com/TuSimple/naive-ui/issues/1170)
## 2.18.2 (2021-09-14)
### Feats

View File

@ -494,7 +494,6 @@ export default defineComponent({
changedValue.push(option.value)
patternRef.value = ''
}
focusSelectionInput()
doUpdateValue(changedValue, getMergedOptions(changedValue))
} else {
if (tag && !remote) {