Fix error when closing a playing audio or video modal (#14310)
This commit is contained in:
@ -298,6 +298,8 @@ class Audio extends React.PureComponent {
|
||||
|
||||
_renderCanvas () {
|
||||
requestAnimationFrame(() => {
|
||||
if (!this.audio) return;
|
||||
|
||||
this.handleTimeUpdate();
|
||||
this._clear();
|
||||
this._draw();
|
||||
|
Reference in New Issue
Block a user