excalidraw: Save file picker is repeatedly not working
Error message:
Failed to execute 'showSaveFilePicker' on 'Window': Must be handling a user gesture to show a file picker.
Browser: Chrome OS: MacOS Monterrey
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 53 (25 by maintainers)
Installing it as a chrome app first makes it work for me.
I created a new issue for this a few weeks ago since the bug seems to be different
https://github.com/excalidraw/excalidraw/issues/7456
if u electron app have this issue,u can try:
app.commandLine.appendSwitch('enable-experimental-web-platform-features');if u sloved it,give me a star! https://github.com/TrumanDu/toolkit
@tomayac - I’m seeing it happen even with a very simple drawing. See attached example.
Thanks for running the test. Additional question: is this happening when the scene is very complex? Here is one theory:
Δuser_gesture).Δprep.Δprep > Δuser_gesture, the user gesture is no longer good.In
browser-fs-access, the library used by Excalidraw under the hood, we now support a new programming model, where the to-be-saved data may be passed as aPromise<Blob>as well (apart from a pre-preparedBloband streamingResponse).Before we explore this, it would be helpful to know if this is the problem. Judging from your video (where apparently the data is available immediately), it’s not, but I wanted to be sure.
Cannot reproduce either. This is via BrowserStack.