mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(editor): Do not focus expression input if it was not in focus before switching (#18744)
This commit is contained in:
@@ -1150,7 +1150,7 @@ watch(remoteParameterOptionsLoading, () => {
|
||||
|
||||
// Focus input field when changing between fixed and expression
|
||||
watch(isModelValueExpression, async (isExpression, wasExpression) => {
|
||||
if (!props.isReadOnly && isExpression !== wasExpression) {
|
||||
if (!props.isReadOnly && isFocused.value && isExpression !== wasExpression) {
|
||||
await nextTick();
|
||||
await setFocus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user