Open teolemon opened 9 months ago
I guess a listener is needed once the switch is pressed. But not only that, you also need to listen to any changes made in "Edit your food preferences" section as the icons will disappear too.
Since any change made there redraws all the products in the list, therefore the buttons disappear.
That switch appears on the page like 3 seconds later after onLoad gets called... So I used a Timeout callback which gets called after 5secs. Which is a hacky solution and might not work for users that have slower internet speed.
What