From 849fac304c4d5e8248e239d0f222df3d5ee057fb Mon Sep 17 00:00:00 2001 From: Carlos Rosado Date: Thu, 15 Aug 2024 10:30:31 -0600 Subject: [PATCH] fix: validating route If the user is typing, we send him to the search page so that it does not overlap with the previous data searched. --- src/components/Search/CtrlSearch.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Search/CtrlSearch.vue b/src/components/Search/CtrlSearch.vue index 35d24302..59c0bc35 100644 --- a/src/components/Search/CtrlSearch.vue +++ b/src/components/Search/CtrlSearch.vue @@ -138,7 +138,7 @@ export default { const newValue = this.formatValue(this.value) if (!newValue) return this.onFocus(false) - if (this.currentType && this.searchedTypes.length) { + if (this.currentType && this.searchedTypes.length && !this.isLoading && !this.typing) { this.$router.push(this.linkToSearch, () => { }) } else { const link = `/${ROUTES.search}/${newValue}`