dispatch destroy comman on video unmount

This commit is contained in:
NikolaBorislavovHristov 2018-12-12 12:39:58 +02:00
parent 614c5da641
commit 3fa17159bb

View file

@ -31,7 +31,7 @@ class Video extends Component {
}
componentWillUnmount() {
this.dispatch('stop');
this.dispatch('command', 'destroy');
}
selectVideoImplementation = () => {