Skip to content

Commit b2ddf06

Browse files
Merge pull request #49 from webdevnerdstuff/dev
1.0.0-beta-8
2 parents d7be191 + 7983dec commit b2ddf06

File tree

6 files changed

+250
-249
lines changed

6 files changed

+250
-249
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Change Log
22
All notable changes to the "vuetify-drilldown-table" plugin will be documented in this file.
33

4+
## v1.0.0-beta-8
5+
06-28-23
6+
[main] (@webdevnerdstuff)
7+
* Fix search not working when using top slot
8+
49
## v1.0.0-beta-7
510
06-28-23
611
[main] (@webdevnerdstuff)

dist/vuetify-drilldown-table.cjs.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vuetify-drilldown-table.es.js

+234-234
Large diffs are not rendered by default.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuetify-drilldown-table",
3-
"version": "1.0.0-beta-7",
3+
"version": "1.0.0-beta-8",
44
"description": "The Vuetify Drilldown Table is a powerful component that enhances the functionality of the Vuetify framework's VDataTable and VDataTableServer. It provides a recursive table structure, allowing you to display hierarchical data in a nested format.",
55
"private": false,
66
"main": "dist/vuetify-drilldown-table.cjs.js",

src/plugin/VDrilldownTable.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ const searchDebounce = {
626626
maxWait: loadedDrilldown.searchMaxWait as number,
627627
};
628628
629-
// ? Using top.left slot //
629+
// ? Using top or top.left slot //
630630
watchDebounced(
631631
() => props.search,
632632
() => {
@@ -635,7 +635,7 @@ watchDebounced(
635635
searchDebounce,
636636
);
637637
638-
// ? Not using top.left slot //
638+
// ? Not using top or top.left slot //
639639
watchDebounced(
640640
levelSearch,
641641
() => {
@@ -646,11 +646,11 @@ watchDebounced(
646646
647647
// Search - Updated //
648648
function searchUpdated() {
649-
if (!slots['top.left']) {
649+
if (!slots['top'] && !slots['top.left']) {
650650
loadedDrilldown.search = levelSearch.value;
651651
}
652652
653-
if (slots['top.left']) {
653+
if (slots['top'] || slots['top.left']) {
654654
levelSearch.value = props.search || '';
655655
}
656656

src/plugin/slots/TopSlot.vue

+4-8
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
<script setup lang="ts">
4444
import { KeyStringAny, TopSlotProps } from '@/types';
4545
import { componentName } from '@/plugin/utils/globals';
46-
import { watchDebounced } from '@vueuse/core';
4746
import { AllProps } from '../utils/props';
4847
4948
@@ -105,13 +104,10 @@ function toggleSelectAllCallback() {
105104
106105
107106
// -------------------------------------------------- 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+
115111
116112
const boundSearchProps = computed<KeyStringAny>(() => {
117113
return {

0 commit comments

Comments
 (0)