Skip to content

Commit

Permalink
fix: validating route
Browse files Browse the repository at this point in the history
	If the user is typing, we send him to the search page
	so that it does not overlap with the previous data searched.
  • Loading branch information
krlz16 committed Aug 15, 2024
1 parent ebc1137 commit 849fac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Search/CtrlSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down

0 comments on commit 849fac3

Please sign in to comment.