Hi
I am using the code below on a drop down to filter a food list in a data set so i can update values if needed.
My issue is that if i select the item in the drop down it works fine but it won’t allow me to select another option should i make a mistake and want to select a different item. The drop down is locked to the item i first selected. any one know what i need to add to this code to fix that?
import wixData from ‘wix-data’;
$w.onReady(() => {
$w(“#dataset1”).setFilter(wixData.filter().eq(‘foodType’));
});
export function dropdown1_change(event) {
//Add your code for this event here:
let myValue = $w(‘#dropdown1’).value;
console.log(myValue,“myvalue”)
$w(“#dataset1”).setFilter(wixData.filter().eq(‘foodType’, myValue));
}