Repeater button works on Web only

I have a button in a repeater.
Using code this button collapses\expands another part of the repeater.

Everything works great on preview for wen and mobile.
After publishing it works only for web. For mobile (Galaxy 7, Android) the Read More buttons don’t do anything when I press it.

Will be happy for some help …

https://www.planmytrip.tours/copy-of-sample-new-1

Hi,
Have you checked if the code works on the mobile editor?

Tal.

Hi Tal,

I did check and it works perfect for mobile and web.
Any ideas ?

Hi Tal (or anyone), Any idea on how to fix that ? |

This is the code :

import wixWindow from ‘wix-window’;

$w.onReady( function () {
if (wixWindow.formFactor === “Mobile”)
$w(“OverallPlanButton”).show();

//Expand\collapse read more when pressing readmore3 button
$w(“#readmore3”).onClick((event, $w) => {
let $item = $w.at(event.context)
const repeatedText = $item(“#locationReadMore”);
const readMoreBtn = $item(“#readmore3”);

if (repeatedText.collapsed) {
repeatedText.expand();
readMoreBtn.label = “Read Less”;
} else {
repeatedText.collapse();
readMoreBtn.label = “Read More”;
}
})

//Collapse read more when pressing readless button
$w(“#readless”).onClick((event, $w) => {
let $item = $w.at(event.context)
const repeatedText = $item(“#locationReadMore”);
const readMoreBtn = $item(“#readmore3”);
repeatedText.collapse();
readMoreBtn.label = “Read More”;
}
})
});