diff --git a/src/jwplayer.jsx b/src/jwplayer.jsx index 1df0cd0..84594fd 100644 --- a/src/jwplayer.jsx +++ b/src/jwplayer.jsx @@ -43,11 +43,13 @@ class JWPlayer extends React.Component { } shouldComponentUpdate(nextProps) { - if (this.didOnEventsChange(nextProps)) { - this.updateOnEventListener(nextProps); - return false; + if (this.player) { + if (this.didOnEventsChange(nextProps)) { + this.updateOnEventListener(nextProps); + return false; + } + return true; } - return true; } componentWillUnmount() {