mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
fix(editor): Auto-focus expression input when switching from "fixed" mode (#10686)
This commit is contained in:
@@ -941,6 +941,14 @@ watch(remoteParameterOptionsLoading, () => {
|
||||
tempValue.value = displayValue.value as string;
|
||||
});
|
||||
|
||||
// Focus input field when changing from fixed value to expression
|
||||
watch(isModelValueExpression, async (isExpression, wasExpression) => {
|
||||
if (isExpression && !wasExpression) {
|
||||
await nextTick();
|
||||
inputField.value?.focus();
|
||||
}
|
||||
});
|
||||
|
||||
onUpdated(async () => {
|
||||
await nextTick();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user