aboutsummaryrefslogtreecommitdiff
path: root/src/App.vue
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-05-04 20:50:57 +1000
committerTerry Truong <terry06890@gmail.com>2022-05-04 22:08:21 +1000
commit73a4aa2d9ad3a740c51d1fac62487efba3e5bff6 (patch)
tree5e9b83f1faf1b9df0495264d7773e42744b0d312 /src/App.vue
parent149d3d4ceca97b83f5f785da88e9e771f05a9c4a (diff)
Add prevention from starting search while in search/auto
Diffstat (limited to 'src/App.vue')
-rw-r--r--src/App.vue4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/App.vue b/src/App.vue
index b683b21..62326e7 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -271,6 +271,10 @@ export default defineComponent({
this.searchOpen = true;
},
onSearchNode(name: string){
+ if (this.modeRunning){
+ console.log("WARNING: Unexpected search event while search/auto mode is running")
+ return;
+ }
this.searchOpen = false;
this.modeRunning = true;
this.expandToNode(name);