AS 6.7.0, MappView 6.5.0
In my eventscript, I am accessing the widgets of a content using the format widget["NameOfWidget"]. This has caused me no issue with the majority of my contents and scripts until this point (several dozen), but I am now having an issue where the widget cannot be accessed. It is correctly defined in the *.content file which loads as expected. However, the eventscript fails to access it. Specifically, the line of code is:
widgets[`NmiDwellTime${i}`].setVisible(visible);
and the error is:
Uncaught (in promise) TypeError: can't access property "setVisible", t[("NmiDwellTime" + (intermediate value))] is undefined
Both i and visible are valid here.
To troubleshoot, I wrote out the contents of the widget collection to the console (console.log(Object.keys(widgets);) and this confirms that the name of my widget (NmiDwellTime2) is not present.
I am not sure where to go from here. I tested across a few setups:
Win11 Firefox v158.0 - doesn’t work
Win11 Edge v155.0 - works
Win11 Chrome v155.0 - works
B&R Linux 12 Chromium v133.0 - works
As mentioned, I have many other contents and scripts that I use this method across, and I’m not sure why this specific content and script are having issues on Firefox. I also did a quick check and another (functioning) content has more widgets, so it doesn’t appear to be related to number.
Thoughts are appreciated.