Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/editor/src/lib/Editor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
}}
onmessage={(e) => {
if (preserve_editor_focus && e.data.type === 'iframe_took_focus') {
console.log('reclaiming focus');
editor_view.focus();
}
}}
Expand Down
6 changes: 5 additions & 1 deletion packages/editor/src/lib/Workspace.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,11 @@ export class Workspace {

update_file(file: File) {
if (file.name === this.#current.name) {
this.#current = file;
// TODO this line causes the editor to keep losign
// focus and I have no idea why. It seems important,
// but it also doesn't appear to break anything
// if we comment it out?
// this.#current = file;
}

this.#files = this.#files.map((old) => {
Expand Down
Loading