fix: Editeur Excalidraw - diagramme vide (CSS + appState) et auto-save pendant l'edition (BUG-064, BUG-065)
This commit is contained in:
@@ -693,6 +693,13 @@ async function reloadExternalWrite(vault, path, force = false) {
|
||||
}
|
||||
// Not editing: refresh the read view when it shows the written document.
|
||||
if (state.currentVault === vault && state.currentPath === path) {
|
||||
// Excalidraw owns its iframe: re-rendering would recreate it (visible page
|
||||
// refresh) and discard the in-editor scene. Its own save already persisted
|
||||
// the file, so there is nothing to reload here.
|
||||
const openExcalidraw = Array.from(
|
||||
document.querySelectorAll("iframe[data-excalidraw-path]")
|
||||
).some((f) => f.dataset.excalidrawVault === vault && f.dataset.excalidrawPath === path);
|
||||
if (openExcalidraw) return;
|
||||
_invalidateActiveTabCache(vault, path);
|
||||
openFile(vault, path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user