Knowledge Base
cancel
Showing results for 
Search instead for 
Did you mean: 

preventDefault() Javascript function not working on Mouse Up

Issue

preventDefault() Javascript function not working on Mouse Up

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
Tags (1)
Labels (1)
Version history
Revision #:
1 of 1
Last update:
3 weeks ago
Updated by: