Skip to content
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

Markdown exits Edit mode and autosaves on lost focus #136

Open
gitterspec opened this issue Aug 22, 2024 · 1 comment
Open

Markdown exits Edit mode and autosaves on lost focus #136

gitterspec opened this issue Aug 22, 2024 · 1 comment

Comments

@gitterspec
Copy link

When using the Markdown widget in Edit mode, if the focus is lost even for a second (i.e. switching to a different window), Edit mode is exited and even worse, the behavior saves (not cancels) changes.

I think the behavior should keep it in Edit mode when switching focus. It's common to need to switch focus during editing, for example: copying something from another window for pasting.

The auto-save behavior is particularly dangerous, as the original note may be inadvertently lost by accident.

@dsagal
Copy link
Member

dsagal commented Aug 22, 2024

Cc @georgegevoian

This was done to address the need to auto-save in some cases (see https://community.getgrist.com/t/markdown-custon-widget-frustration/3768), but I agree that now it auto-saves and closes in cases when it shouldn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants