mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
fix(editor): Auto-focus expression input when switching from "fixed" mode (#10686)
This commit is contained in:
parent
62cb189985
commit
54ab2b14e4
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue