Hi all,
I've just added some multi-sate boxed to my site, which has worked fine. However, my collapse on load / expand on event Repeater has stopped working. Can anyone see why that may be please? import wixData from "wix-data"; $w.onReady(function () { $w("#button1").onClick(() => { $w("#statebox8").changeState("Open"); }); $w("#button3").onClick(() => { $w("#statebox8").changeState("Closed"); }); $w("#button5").onClick(() => { $w("#statebox9").changeState("Open1"); }); $w("#button6").onClick(() => { $w("#statebox9").changeState("Closed1"); }); $w.onReady(function () { $w('#repeater').collapse()() $w("#searchbutton").onClick(()=>{ $w('#repeater').expand()(); $w("#dynamicDataset").setFilter(wixData.filter() .contains("title", $w("#searchbox").value)); }); }); });
Hi Nathan,
The repeater collapse line has two sets of parenthesis, so it's failing on that line.