Hi!
It was working all fine until very recently (I feel like Wix have been tampering with some stuff of late). Basically, I have two pieces of text which are formatted with code to be bold when the switch is set to its corresponding value.
Now, it still works, BUT it keeps adding “[Removed]” in front of the text every time the switch is activated/deactivated!
You can see for yourself here : https://www.wehaveadeal.net/ Try toggling it on and off and you will see.
NOTE : the switch only shows on the MOBILE version.
Any idea what causes this bug ?
Here’s the piece of code that runs it :
export function switch1_change(event) {
//shows deals (mobile)
if ($w("#switch1").checked) {
$w("#repeater3").expand();
$w("#repeater4").collapse();
$w("#button25").collapse();
$w("#vectorImage26").hide();
$w("#button18").expand();
$w("#vectorImage27").show();
$w("#textDeals").html = `<style="text-align:center"><span style="font-family:arial; color:#7D7D7D; font-weight:bold; font-size:10px">${$w("#textDeals").text}</span>`;
$w("#textGoodies").html = `<style="text-align:center"><span style="font-family:arial; color:#7D7D7D; font-size:10px">${$w("#textGoodies").text}</span>`;
}
else {
$w("#repeater4").expand();
$w("#repeater3").collapse();
$w("#button18").collapse();
$w("#vectorImage27").hide();
$w("#button25").expand();
$w("#vectorImage26").show();
$w("#textGoodies").html = `<style="text-align:center"><span style="font-family:arial; color:#7D7D7D; font-weight:bold; font-size:10px">${$w("#textGoodies").text}</span>`;
$w("#textDeals").html = `<style="text-align:center"><span style="font-family:arial; color:#7D7D7D; font-size:10px">${$w("#textDeals").text}</span>`;
}
}