Hello,
Does anyone find the fault in my code? I got the same exact code on another website and it works perfectly fine - but now on the new one it doesn’t work at all…even thought the database as well as the code is exact the same.
import wixData from"wix-data";
let debounceTimer;
exportfunctioniTitle_keyPress(event, $w) {
if (debounceTimer) {
clearTimeout(debounceTimer);
debounceTimer = undefined;
}
debounceTimer = setTimeout(() => {
filter($w('#iTitle').value);
}, 200);
}
let lastFilterTitle;
functionfilter(title) {
if(lastFilterTitle !== title) {
$w('#dataset1').setFilter(wixData.filter().contains('Title', title));
}
}