-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: undo/history not properly initialized #1791
Comments
Ok. I can reproduce. obsidian-excalidraw-plugin/src/ExcalidrawView.ts Lines 1804 to 1821 in d05ccc0
|
|
I simply call updateScene(). I do it in two steps, first to load the elements, then a successive updateScene to set appState. obsidian-excalidraw-plugin/src/ExcalidrawView.ts Lines 2198 to 2229 in d05ccc0
|
Ah. The new history API has changed the You'll want to update (I've also noticed we have incorrect tsdoc saying the default is (see breaking changes in our changelog) |
Thanks! I notice this is an issue in a number of my scripts as well. I will clean this up for the next release. |
...and I need |
Your environment
SYSTEM INFO:
Obsidian version: v1.5.12
Installer version: v1.5.12
Operating system: Windows 10 Pro 10.0.19045
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 1
Plugins enabled: 1
1: Excalidraw v2.2.2
Describe the bug
History is not initialized properly. Undo on initial load of a file removes all content. Even after first change is made after load, first undo removes all content.
@zsviczian if you can point to where you initialize/update data, I can take a look.
The text was updated successfully, but these errors were encountered: