We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c88afe8 commit 5df7fa7Copy full SHA for 5df7fa7
packages/editor/src/lib/Editor.svelte
@@ -90,7 +90,6 @@
90
}}
91
onmessage={(e) => {
92
if (preserve_editor_focus && e.data.type === 'iframe_took_focus') {
93
- console.log('reclaiming focus');
94
editor_view.focus();
95
}
96
packages/editor/src/lib/Workspace.svelte.ts
@@ -302,7 +302,11 @@ export class Workspace {
302
303
update_file(file: File) {
304
if (file.name === this.#current.name) {
305
- this.#current = file;
+ // TODO this line causes the editor to keep losign
306
+ // focus and I have no idea why. It seems important,
307
+ // but it also doesn't appear to break anything
308
+ // if we comment it out?
309
+ // this.#current = file;
310
311
312
this.#files = this.#files.map((old) => {
0 commit comments