fix(editor): Do not show actions dialog for actionless triggers when selected via keyboard (#4911)

This commit is contained in:
OlegIvaniv 2022-12-13 16:47:03 +01:00 committed by GitHub
parent 1b07505603
commit 74100d3d5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}