Not sure what I am doing wrong here but I have 4 items in a layouter in EditorX. One is collapsed at load and can be expanded using a radio button using a few lkines of code. It works fine in Preview mode in but not in a browser…any browser.
This is how it looks at load in Preview (as expected):
When the 2 item is expanded, it looks like this:
This is what I see in a browser:
When I expand the 2nd item, it fills the gap.
Does anyone have any idea why this would be? Code I use is below but it’s so simple, I don’t see why it would cause this problem…but perhaps I missing something? When the page loads, neither radio button is selected.
export function keyRadio_click(event) {
if ($w("#keyRadio").value === "Radio button1") {
$w("#box02").collapse();
box02Status="collapsed";
}
if ($w("#keyRadio").value === "Radio button2") {
$w("#box02").expand();
box02Status="expanded";
}
}
Any ideas?
Simon.