Fix global search on phone maybe?
This commit is contained in:
@@ -43,7 +43,7 @@ const onSearchBlue = () => {
|
||||
setTimeout(() => querySearchList.value = true, 300)
|
||||
}
|
||||
|
||||
watch(querySearch, debounce((value) => {
|
||||
const searchDebounce = debounce((value) => {
|
||||
axios.get(
|
||||
route('search'),
|
||||
{
|
||||
@@ -65,7 +65,11 @@ watch(querySearch, debounce((value) => {
|
||||
.finally(function(){
|
||||
|
||||
});
|
||||
}, 300));
|
||||
}, 300);
|
||||
|
||||
watch(querySearch, (value) => {
|
||||
searchDebounce(value);
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
@@ -122,6 +126,7 @@ watch(querySearch, debounce((value) => {
|
||||
size="md"
|
||||
@focus="onSearchFocus"
|
||||
@blur="onSearchBlue"
|
||||
@input.stop="true"
|
||||
>
|
||||
<template #prefix>
|
||||
<SearchIcon />
|
||||
@@ -320,6 +325,7 @@ watch(querySearch, debounce((value) => {
|
||||
size="md"
|
||||
@focus="onSearchFocus"
|
||||
@blur="onSearchBlue"
|
||||
@input.stop="true"
|
||||
>
|
||||
<template #prefix>
|
||||
<SearchIcon />
|
||||
|
||||
Reference in New Issue
Block a user