mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
fix(editor): Do not show actions dialog for actionless triggers when selected via keyboard (#4911)
This commit is contained in:
parent
1b07505603
commit
74100d3d5b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue