Issue
The preventDefault() JavaScript function does not work as expected when used with the Mouse Up event.
Product Line
EcoStruxure Building Operation
Environment
Building Operation Workstation
Cause
Users may attempt to override the default behavior of the Building Operation Properties Editor by using preventDefault() on the Mouse Up event. However, the editor is triggered by the Mouse Click event, not Mouse Up.
Resolution
To successfully prevent the default behavior and override the launch of the Properties Editor:
- Select the TGML Script where the interaction is defined.
- Use the onClick event instead of onMouseUp.
- Add the following line inside the onClick function:
evt.preventDefault();