mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32: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;
|
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 () => {
|
onUpdated(async () => {
|
||||||
await nextTick();
|
await nextTick();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user