Simplify the approach to leave change behaviour as it is and leave persistence to the close behaviour

This commit is contained in:
Dean 2024-08-23 12:24:22 +01:00
parent b9c685b83b
commit 3c2cb3dda1
2 changed files with 1 additions and 7 deletions

View File

@ -1078,15 +1078,10 @@
>
<CodeEditor
value={inputData[key]}
on:blur={e => {
on:change={e => {
// need to pass without the value inside
inputData[key] = e.detail
}}
on:insert={e => {
// Blur events only happen once after inserting a binding
// State will now update on insert
inputData[key] = e.detail
}}
completions={stepCompletions}
mode={codeMode}
autocompleteEnabled={codeMode !== EditorModes.JS}

View File

@ -140,7 +140,6 @@
}
: undefined,
})
dispatch("insert", editor.state.doc.toString())
}
// Match decoration for HBS bindings