Skip to content

Commit

Permalink
[Media] Fix Input callback not set (#8720)
Browse files Browse the repository at this point in the history
Add a onUserInput prop to the "Update File" ButtonElement

Fixes #8700
  • Loading branch information
charlottesce authored Jun 7, 2023
1 parent 3c52767 commit 4e3ff96
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/media/jsx/editForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,10 @@ class MediaEditForm extends Component {
ref='hideFile'
value={this.state.formData.hideFile}
/>
<ButtonElement label='Update File'/>
<ButtonElement
label='Update File'
onUserInput = {() => {}}
/>
</FormElement>
</div>
);
Expand Down

0 comments on commit 4e3ff96

Please # to comment.