react-jw-player
react-jw-player copied to clipboard
Unmount on fullscreen should cleanup the dom
Hi, if the Player component gets unmounted while in fullscreen then it leaves some styling on the body tag disabling scrolling.
The best way to solve this would be if the player had a handler in componentWillUnmount that either cleans up the dom or signals jwplayer to do it.
@tarjei oh interesting. We are calling .remove()
with the jwplayer sdk when component unmounts, see https://github.com/micnews/react-jw-player/blob/master/src/helpers/remove-jw-player-instance.js#L5 so I'm wondering if this is an issue in the jwplayer sdk not cleaning things up properly? If so that would be an issue for https://github.com/jwplayer/jwplayer
Interesting - that might be true. I'll see if I can get them to look into it.
@tarjei are you okay with us closing this issue for now?
@danmakenoise can we keep it open a few weeks more? I've created an issue directly on the JWplayer repo (I had emailed our technical support contact, but that didn't generate any action).
@tarjei totally fine! Let us know what you hear back. I'm 90% certain this is on the SDK end, but would be good to know for sure!