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

fix editor losing focus on save #287

Merged
merged 1 commit into from
Dec 31, 2024
Merged

fix editor losing focus on save #287

merged 1 commit into from
Dec 31, 2024

Conversation

cloverich
Copy link
Owner

  • fix bug where editor would lose focus on save
  • adjust debounce to original timing

Should really make the saving more intelligent (long pause, and allow user to leave note and save in background)...

- fix bug where editor would lose focus on save
- adjust debounce to original timing
initialValue={value as any}
onChange={setValue}
plugins={plugins}
readOnly={saving}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why this line was here, and also unsure why this didn't trigger noticeable focus loss before; would have been less noticeable with the prior settings, but should have still been noticeable...

@cloverich cloverich merged commit 88f62d3 into master Dec 31, 2024
2 checks passed
@cloverich cloverich deleted the editor_focus branch December 31, 2024 06:38
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

Successfully merging this pull request may close these issues.

1 participant