diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-05-04 20:50:57 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-05-04 22:08:21 +1000 |
| commit | 73a4aa2d9ad3a740c51d1fac62487efba3e5bff6 (patch) | |
| tree | 5e9b83f1faf1b9df0495264d7773e42744b0d312 | |
| parent | 149d3d4ceca97b83f5f785da88e9e771f05a9c4a (diff) | |
Add prevention from starting search while in search/auto
| -rw-r--r-- | src/App.vue | 4 |
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); |
