Skip to content

Commit

Permalink
Merge branch 'next' into patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
superNos authored Jan 20, 2021
2 parents 6fc25d6 + f01d531 commit 1233f09
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/taro-components/src/components/video/video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,11 @@ export class Video implements ComponentInterface {
style={{
'object-fit': objectFit
}}
ref={dom => (this.videoRef = dom as HTMLVideoElement)}
ref={dom => {
if (dom) {
this.videoRef = dom as HTMLVideoElement
}
}}
src={src}
autoplay={autoplay}
loop={loop}
Expand Down

0 comments on commit 1233f09

Please sign in to comment.