I have an input box populated with values everytime I click a graphs bar using the onMessage and click event. After that I use an onChange event in the input box to filter data and then send results to the repeater. The problem is that the input acts as if there is no value at all, and visually (Preview) you can see the value there.
$w('#html1').postMessage(data);
console.log(data)
$w('#html1').onMessage((event) => {
if (event.data.type === 'ready') {
$w('#html1').postMessage(data);
}
if (event.data.type === 'click') {
$w("#input1").value = event.data.value;
$w("#text1").show();
}
});
export function input1_change(event) {
$w('#dataset1').setFilter(wixData.filter().eq("def",$w('#input1').value ));
}
Can someone elaborated what happened??