Demo:修复在搜索框回车后输入框焦点丢失的问题

This commit is contained in:
wanglin2 2023-07-29 14:24:50 +08:00
parent 4c9698a147
commit 20eba7b29b

View File

@ -102,7 +102,7 @@ export default {
showSearch() {
this.$bus.$emit('closeSideBar')
this.show = true
// this.$refs.input.focus()
// this.$refs.searchInputRef.focus()
},
hideReplaceInput() {
@ -112,7 +112,7 @@ export default {
onSearchNext() {
this.mindMap.search.search(this.searchText, () => {
this.$refs.input.focus()
this.$refs.searchInputRef.focus()
})
},