fix(media-library): automatically select uploaded image (#2569)
This commit is contained in:
parent
003c97f97c
commit
9f003106e5
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user