Hello people, I just discovered that my project is having problems with user interactions through code.
In Preview, everything works perfectly, as expected and as directed by code, but the Published version does not. Some buttons, radio buttons, dropdowns and etc, do not work with the .onClick() event handler, instead, I need to go in the event handler and create through the panel the function that is going to call the code.
This is not working:
$w("#dropdownProducts").onChange(() => {
$w("#buttonClearProducts").show()
})
So I had to change all user interactive elements that didn’t work, to something like this:
export function dropdownProducts_change(event) {
$w("#buttonClearProducts").show()
}
After the change everything works as expected, but it is quite annoying.
PS: I’m using Editor X.