Skip to content

Commit

Permalink
fix(video): this.progressBallRef is undefined (#4407)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuya227939 authored and luckyadam committed Sep 19, 2019
1 parent 708ceb9 commit 0a7fc45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-components/src/components/video/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Controls extends Component {
this.currentTimeRef.innerHTML = formatTime(time)
}
setProgressBall (percentage) {
this.progressBallRef.style.left = `${percentage * 100}%`
if(this.progressBallRef) this.progressBallRef.style.left = `${percentage * 100}%`
}

toggleVisibility (nextVisible) {
Expand Down

0 comments on commit 0a7fc45

Please sign in to comment.