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

Editor: Avoid passing event object to save button onSave prop #16770

Merged
merged 1 commit into from
Jul 29, 2019

Conversation

aduth
Copy link
Member

@aduth aduth commented Jul 26, 2019

Extracted from #16761

This pull request seeks to remove inadvertent arguments passing to PostSavedState onSave prop. Without these changes, the event object of the mouse click on "Save Draft" is interpreted as the options argument of savePost.

Testing Instructions:

Ensure unit tests pass:

npm run test-unit packages/editor/components/post-saved-state/test/index.js

Verify there are no regressions in using the "Save Draft" button to save a post.

@aduth aduth added [Type] Bug An existing feature does not function as intended [Package] Editor /packages/editor labels Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Editor /packages/editor [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants