mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(editor): Reka UI inline text edit component (#15752)
This commit is contained in:
@@ -857,6 +857,13 @@ function onRenameNode(parameterData: IUpdateInformation) {
|
||||
async function onOpenRenameNodeModal(id: string) {
|
||||
const currentName = workflowsStore.getNodeById(id)?.name ?? '';
|
||||
|
||||
const activeElement = document.activeElement;
|
||||
|
||||
if (activeElement && activeElement.tagName === 'INPUT') {
|
||||
// If an input is focused, do not open the rename modal
|
||||
return;
|
||||
}
|
||||
|
||||
if (!keyBindingsEnabled.value || document.querySelector('.rename-prompt')) return;
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user