Remove auto-play on expansion.
This commit is contained in:
1 parent
e17dc90983
commit
376f5626a4
1 file changed
+1
-3
@@ -99,9 +99,7 @@ class VideoStep extends React.Component {
|
||||
}
|
||||
componentDidUpdate () {
|
||||
const video = window.Wistia.api(`${this.props.video}`);
|
||||
if (this.props.expanded) {
|
||||
video.play();
|
||||
} else {
|
||||
if (!this.props.expanded) {
|
||||
video.pause();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user