Ok but
$w("#repeater1").onItemReady(($item, itemData, index) => {
$item("#btnAdd").onClick((event) => {
console.log('clicked');
boxId = index;
});
daRimuovere.push(boxId);
console.log(daRimuovere);
enableButton()
$w("#repeater1").forItems(daRimuovere, ($item, itemData, index) => {
$item('#btnAdd').enable;
});
It return this yellow error:
Wix code SDK Warning: The data that was passed to forItems contained non existing item with the ID: 0 .
Then clicking on other elements always brings me the id of the first one I clicked