Hi everyone,
I’ve set up three filter inputs connected to a dataset (#dynamicDataset):
#dropdown1(Text field – “kunde”)#dropdown2(Tags field – “Leistungen”)#selectionTags1(Tags field – “Kategorien”)
Everything works perfectly – until I click the reset button.
This is the code I’m using:
import wixData from 'wix-data';
$w.onReady(function () {
$w('#clearButton').onClick(() => {
// Clear filters
$w("#dynamicDataset").setFilter(wixData.filter());
// Reset inputs
$w("#dropdown1").value = null;
$w("#dropdown2").value = null;
$w("#selectionTags1").value = null;
});
});
The strange part:
The reset works great the first time – all filters are cleared and the dataset displays all items again.
But after that, none of the filters work anymore – any new selection has no effect.
Does anyone know what could be causing this?
Thanks in advance ![]()
Alex