diff --git a/frontend/src/lib/components/SimpleEditor.svelte b/frontend/src/lib/components/SimpleEditor.svelte
index df142b4551..8f05f2d594 100644
--- a/frontend/src/lib/components/SimpleEditor.svelte
+++ b/frontend/src/lib/components/SimpleEditor.svelte
@@ -110,6 +110,10 @@
}
}
+ export function focus() {
+ editor?.focus()
+ }
+
let width = 0
async function loadMonaco() {
model = meditor.createModel(code, lang, mUri.parse(uri))
diff --git a/frontend/src/lib/components/flows/content/BranchPredicateEditor.svelte b/frontend/src/lib/components/flows/content/BranchPredicateEditor.svelte
index dc583c6388..796e84c61f 100644
--- a/frontend/src/lib/components/flows/content/BranchPredicateEditor.svelte
+++ b/frontend/src/lib/components/flows/content/BranchPredicateEditor.svelte
@@ -27,8 +27,7 @@
parentModule.id,
$flowStore,
$previewArgs,
- false,
- true
+ false
)
@@ -37,6 +36,7 @@
pickableProperties={stepPropPicker.pickableProperties}
on:select={({ detail }) => {
editor?.insertAtCursor(detail)
+ editor?.focus()
}}
>
diff --git a/frontend/src/lib/components/flows/content/FlowLoop.svelte b/frontend/src/lib/components/flows/content/FlowLoop.svelte
index 878ba21d04..1691ad56a7 100644
--- a/frontend/src/lib/components/flows/content/FlowLoop.svelte
+++ b/frontend/src/lib/components/flows/content/FlowLoop.svelte
@@ -33,8 +33,7 @@
mod.id,
$flowStore,
$previewArgs,
- false,
- true
+ false
)
@@ -60,6 +59,7 @@
pickableProperties={stepPropPicker.pickableProperties}
on:select={({ detail }) => {
editor?.insertAtCursor(detail)
+ editor?.focus()
}}
>
+{previousModule?.id}
{#if value}
diff --git a/frontend/src/lib/components/flows/content/FlowModuleEarlyStop.svelte b/frontend/src/lib/components/flows/content/FlowModuleEarlyStop.svelte
index c09f98b469..2490f7d27b 100644
--- a/frontend/src/lib/components/flows/content/FlowModuleEarlyStop.svelte
+++ b/frontend/src/lib/components/flows/content/FlowModuleEarlyStop.svelte
@@ -57,6 +57,7 @@
pickableProperties={undefined}
on:select={({ detail }) => {
editor?.insertAtCursor(detail)
+ editor?.focus()
}}
>
{
editor?.insertAtCursor(detail)
+ editor?.focus()
}}
>