In the script for the click event I'm using a function.
Without this function there is no problem.
With the function the script is not completed and after a first run, the script will not run anymore.
Also all segmentedControl script components do not function anymore.
I have been struggling with this for hours without any result.
The function is used elsewhere in the app without a problem.
Does anybody have a suspicion what the cause could be why scripts do not run?
After refreshing the page I can use the button and the segmentedControl again.