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

Save meta fields when opening the image editor #3339

Merged
merged 3 commits into from Dec 7, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/@uppy/dashboard/src/components/FileCard/index.js
Expand Up @@ -152,7 +152,10 @@ class FileCard extends Component {
<button
type="button"
className="uppy-u-reset uppy-c-btn uppy-Dashboard-FileCard-edit"
onClick={() => this.props.openFileEditor(file)}
onClick={(event) => {
this.handleSave(event)
this.props.openFileEditor(file)
}}
form={this.form.id}
>
{this.props.i18n('editFile')}
Expand Down