preventDefault() Javascript function not working on Mouse Up

Issue

preventDefault() Javascript function not working on Mouse Up

Product Line

SmartStruxure Solution

Environment

TGML Editor

Cause

Users want to override the default function showing the StruxureWare Building Operation properties editor by preventing the default action for the Up function. The Building Operation Properties editor is not launched on Mouse Up but on Mouse Click.

Resolution

  1. Select The TGML Script
  2. Add the line "evt.preventDefault();" to the onClick function