Demo:修复在搜索框回车后输入框焦点丢失的问题
This commit is contained in:
parent
4c9698a147
commit
20eba7b29b
@ -102,7 +102,7 @@ export default {
|
|||||||
showSearch() {
|
showSearch() {
|
||||||
this.$bus.$emit('closeSideBar')
|
this.$bus.$emit('closeSideBar')
|
||||||
this.show = true
|
this.show = true
|
||||||
// this.$refs.input.focus()
|
// this.$refs.searchInputRef.focus()
|
||||||
},
|
},
|
||||||
|
|
||||||
hideReplaceInput() {
|
hideReplaceInput() {
|
||||||
@ -112,7 +112,7 @@ export default {
|
|||||||
|
|
||||||
onSearchNext() {
|
onSearchNext() {
|
||||||
this.mindMap.search.search(this.searchText, () => {
|
this.mindMap.search.search(this.searchText, () => {
|
||||||
this.$refs.input.focus()
|
this.$refs.searchInputRef.focus()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user