From 74100d3d5b12f70e78e04e8c87541f3adf6decdb Mon Sep 17 00:00:00 2001 From: OlegIvaniv Date: Tue, 13 Dec 2022 16:47:03 +0100 Subject: [PATCH] fix(editor): Do not show actions dialog for actionless triggers when selected via keyboard (#4911) --- .../src/components/Node/NodeCreator/CategorizedItems.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/Node/NodeCreator/CategorizedItems.vue b/packages/editor-ui/src/components/Node/NodeCreator/CategorizedItems.vue index ae18d680d3..f2eb58b1cf 100644 --- a/packages/editor-ui/src/components/Node/NodeCreator/CategorizedItems.vue +++ b/packages/editor-ui/src/components/Node/NodeCreator/CategorizedItems.vue @@ -431,7 +431,8 @@ function selected(element: INodeCreateElement) { } function onNodeSelected(element: NodeCreateElement) { - if(props.withActionsGetter && props.withActionsGetter(element) === true) { + const hasActions = (element.properties.nodeType?.actions?.length || 0) > 0; + if(props.withActionsGetter && props.withActionsGetter(element) === true && hasActions) { emit('actionsOpen', element.properties.nodeType); return; }