mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
fix(editor): Fix condition for opening the rename node prompt (no-changelog) (#18962)
This commit is contained in:
@@ -122,7 +122,10 @@ import { useClipboard } from '@/composables/useClipboard';
|
||||
import { useBeforeUnload } from '@/composables/useBeforeUnload';
|
||||
import { getResourcePermissions } from '@n8n/permissions';
|
||||
import NodeViewUnfinishedWorkflowMessage from '@/components/NodeViewUnfinishedWorkflowMessage.vue';
|
||||
import { createCanvasConnectionHandleString } from '@/utils/canvasUtils';
|
||||
import {
|
||||
createCanvasConnectionHandleString,
|
||||
shouldIgnoreCanvasShortcut,
|
||||
} from '@/utils/canvasUtils';
|
||||
import { isValidNodeConnectionType } from '@/utils/typeGuards';
|
||||
import { getSampleWorkflowByTemplateId } from '@/utils/templates/workflowSamples';
|
||||
import type { CanvasLayoutEvent } from '@/composables/useCanvasLayout';
|
||||
@@ -917,7 +920,7 @@ async function onOpenRenameNodeModal(id: string) {
|
||||
|
||||
const activeElement = document.activeElement;
|
||||
|
||||
if (activeElement && activeElement.tagName === 'INPUT') {
|
||||
if (activeElement && shouldIgnoreCanvasShortcut(activeElement)) {
|
||||
// If an input is focused, do not open the rename modal
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user