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

Stop calling onSave callback in onBlur. Fix #173 #177

Merged
merged 4 commits into from
Jan 3, 2019

Conversation

thibaudcolas
Copy link
Collaborator

Fixes #173. Removes the unnecessary call to saveState/onSave, originally reported in #170 (comment).

I added a storybook helper component to troubleshoot this and confirmed this call wasn't necessary (the setTimeout one happens when the Draft.js selection changes on blur). Also added tests for related code before/after changing the behavior.

@thibaudcolas thibaudcolas added the bug Something isn't working label Jan 2, 2019
@thibaudcolas thibaudcolas added this to the v1.1.0 milestone Jan 2, 2019
@thi-bot
Copy link
Collaborator

thi-bot commented Jan 2, 2019

Warnings
⚠️

This pull request updates the library. Should the documentation be updated as well?

Generated by 🚫 dangerJS

@thibaudcolas thibaudcolas merged commit 427b77c into master Jan 3, 2019
@thibaudcolas thibaudcolas deleted the bug/unneeded-save-state branch January 3, 2019 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants