fix(media-library): automatically select uploaded image (#2569)
This commit is contained in:
committed by
Shawn Erquhart
parent
003c97f97c
commit
9f003106e5
@ -176,6 +176,8 @@ class MediaLibrary extends React.Component {
|
|||||||
|
|
||||||
await persistMedia(file, { privateUpload });
|
await persistMedia(file, { privateUpload });
|
||||||
|
|
||||||
|
this.setState({ selectedFile: this.props.files[0] });
|
||||||
|
|
||||||
event.target.value = null;
|
event.target.value = null;
|
||||||
|
|
||||||
this.scrollToTop();
|
this.scrollToTop();
|
||||||
|
Reference in New Issue
Block a user