Skip to content

Commit a8e3db1

Browse files
Fix search functionality when using slots
1 parent 2763970 commit a8e3db1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/plugin/VDrilldownTable.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,9 @@ watchDebounced(
639639
watchDebounced(
640640
levelSearch,
641641
() => {
642-
searchUpdated();
642+
if (!slots['top'] && !slots['top.left']) {
643+
searchUpdated();
644+
}
643645
},
644646
searchDebounce,
645647
);

src/plugin/slots/TopSlot.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ watch(levelSearch, () => {
108108
emit('update:search', levelSearch.value);
109109
});
110110
111-
112111
const boundSearchProps = computed<KeyStringAny>(() => {
113112
return {
114113
...{

0 commit comments

Comments
 (0)