From a4e729c7a77e73fad6d827df6411f040461d060a Mon Sep 17 00:00:00 2001 From: Matt Gilman Date: Fri, 25 Aug 2017 16:08:34 -0400 Subject: [PATCH] NIFI-4324: - Ensuring that sub context menus are removed when hiding to ensure they are correctly (re)created during mouseenter events. Signed-off-by: Scott Aslan This closes #2109 --- .../src/main/webapp/js/nf/canvas/nf-context-menu.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js index 711837e439..65346b2b85 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-context-menu.js @@ -778,7 +778,8 @@ * Hides the context menu. */ hide: function () { - $('.context-menu').hide(); + $('#context-menu').hide(); + $('div.context-menu.sub-menu').remove(); }, /**