From 73a4aa2d9ad3a740c51d1fac62487efba3e5bff6 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Wed, 4 May 2022 20:50:57 +1000 Subject: Add prevention from starting search while in search/auto --- src/App.vue | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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); -- cgit v1.2.3