NagVis / nagvis

Visualization addon for your open source monitoring core
http://nagvis.org/
GNU General Public License v2.0
115 stars 74 forks source link

Javascript error on refresh after updating an object #333

Closed euniceremoquillo closed 1 year ago

euniceremoquillo commented 1 year ago

Currently, making a refresh right after modifying an object doesn't hide the context displayed. Context hide function were called to hide the whole dom_obj but was not hiding the element inside.

This commit will hide the context created upon right click and if it exists, it will make sure that it will be hidden after a mouse event. Also added a check on the condition for handling mouse clicks to avoid an error prompt, since it's expected to be null after the mouse event.

Signed-off-by: Eunice Remoquillo eremoquillo@itrsgroup.com

LarsMichelsen commented 1 year ago

Thanks for your contribution :-)