We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 546c1c3 commit 7e6673bCopy full SHA for 7e6673b
apps/webapp/app/components/code/TSQLEditor.tsx
@@ -202,7 +202,8 @@ export function TSQLEditor(opts: TSQLEditorProps) {
202
ref={editor}
203
onBlur={() => {
204
if (!onBlur) return;
205
- onBlur(editor.current?.textContent ?? "");
+ if (!view) return;
206
+ onBlur(view.state.doc.toString());
207
}}
208
/>
209
{showButtons && (
0 commit comments