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 autosave event handler #31

Merged
merged 5 commits into from
Nov 9, 2018
Merged

Fix autosave event handler #31

merged 5 commits into from
Nov 9, 2018

Conversation

adamb70
Copy link

@adamb70 adamb70 commented Nov 8, 2018

This PR (sparksuite/simplemde-markdown-editor#577) was never merged in simpleMDE, so I have recreated it for EasyMDE.

It fixes inconsistent behaviour with the autosave when submitting a form to make sure the localstorage is cleared when the form is submitted. It also stops the autosave function from adding a new "submit" event listener every time it saves.

@Ionaru
Copy link
Owner

Ionaru commented Nov 9, 2018

Looks good to me 👍

@Ionaru Ionaru merged commit 604f2c8 into Ionaru:development Nov 9, 2018
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.

2 participants