File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -626,7 +626,7 @@ const searchDebounce = {
626
626
maxWait: loadedDrilldown .searchMaxWait as number ,
627
627
};
628
628
629
- // ? Using top.left slot //
629
+ // ? Using top or top .left slot //
630
630
watchDebounced (
631
631
() => props .search ,
632
632
() => {
@@ -635,7 +635,7 @@ watchDebounced(
635
635
searchDebounce ,
636
636
);
637
637
638
- // ? Not using top.left slot //
638
+ // ? Not using top or top .left slot //
639
639
watchDebounced (
640
640
levelSearch ,
641
641
() => {
@@ -646,11 +646,11 @@ watchDebounced(
646
646
647
647
// Search - Updated //
648
648
function searchUpdated() {
649
- if (! slots [' top.left' ]) {
649
+ if (! slots [' top' ] && ! slots [ ' top .left' ]) {
650
650
loadedDrilldown .search = levelSearch .value ;
651
651
}
652
652
653
- if (slots [' top.left' ]) {
653
+ if (slots [' top' ] || slots [ ' top .left' ]) {
654
654
levelSearch .value = props .search || ' ' ;
655
655
}
656
656
Original file line number Diff line number Diff line change 43
43
<script setup lang="ts">
44
44
import { KeyStringAny , TopSlotProps } from ' @/types' ;
45
45
import { componentName } from ' @/plugin/utils/globals' ;
46
- import { watchDebounced } from ' @vueuse/core' ;
47
46
import { AllProps } from ' ../utils/props' ;
48
47
49
48
@@ -105,13 +104,10 @@ function toggleSelectAllCallback() {
105
104
106
105
107
106
// -------------------------------------------------- Search Field //
108
- watchDebounced (
109
- levelSearch ,
110
- () => {
111
- emit (' update:search' , levelSearch .value );
112
- },
113
- { debounce: 750 , maxWait: 1000 },
114
- );
107
+ watch (levelSearch , () => {
108
+ emit (' update:search' , levelSearch .value );
109
+ });
110
+
115
111
116
112
const boundSearchProps = computed <KeyStringAny >(() => {
117
113
return {
You can’t perform that action at this time.
0 commit comments