From 9ae6329690ad3fde3f4f46cc57189ffb4cc2af54 Mon Sep 17 00:00:00 2001 From: bordun Date: Mon, 10 May 2021 20:23:01 +0200 Subject: [PATCH] editor: extra separator in context menu in some cases --- src/client/editor/context-menu.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/client/editor/context-menu.js b/src/client/editor/context-menu.js index 4bc0ab96..9f965873 100644 --- a/src/client/editor/context-menu.js +++ b/src/client/editor/context-menu.js @@ -285,9 +285,11 @@ var handleClick = function(event) { } - if (actions.length) actions.push({ - separator: true - }) + if (data.length == 1 && widget.childrenType !== undefined) { + if (actions.length) actions.push({ + separator: true + }) + } if (data.length == 1 && widget.childrenType !== 'tab') { actions.push({