mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 18:37:43 +08:00
Demo:修复在搜索框回车后输入框焦点丢失的问题
This commit is contained in:
parent
4c9698a147
commit
20eba7b29b
@ -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()
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user