Merge pull request #9732 from lfzawacki/v2.2.x-release

Call onmount for custom arc-player
This commit is contained in:
Anton Georgiev 2020-06-01 15:13:09 -04:00 committed by GitHub
commit 38e12d2bfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,10 @@ export class ArcPlayer extends Component {
this.onStateChange = this.onStateChange.bind(this);
}
componentDidMount () {
this.props.onMount && this.props.onMount(this)
}
load() {
new Promise((resolve, reject) => {
this.render();