fix(media-library): automatically select uploaded image (#2569)

This commit is contained in:
Henry Desroches 2019-09-05 11:38:27 -06:00 committed by Shawn Erquhart
parent 003c97f97c
commit 9f003106e5

View File

@ -176,6 +176,8 @@ class MediaLibrary extends React.Component {
await persistMedia(file, { privateUpload });
this.setState({ selectedFile: this.props.files[0] });
event.target.value = null;
this.scrollToTop();