Merge pull request #9732 from lfzawacki/v2.2.x-release
Call onmount for custom arc-player
This commit is contained in:
commit
38e12d2bfc
@ -62,6 +62,10 @@ export class ArcPlayer extends Component {
|
|||||||
this.onStateChange = this.onStateChange.bind(this);
|
this.onStateChange = this.onStateChange.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentDidMount () {
|
||||||
|
this.props.onMount && this.props.onMount(this)
|
||||||
|
}
|
||||||
|
|
||||||
load() {
|
load() {
|
||||||
new Promise((resolve, reject) => {
|
new Promise((resolve, reject) => {
|
||||||
this.render();
|
this.render();
|
||||||
|
Loading…
Reference in New Issue
Block a user