lijinke666/react-music-player

ProgressBar and current-time labels break with custom root node

Closed this issue · 1 comments

ProgressBar and current-time labels break when you change the root node via getContainer(). My guess is that the ref to these items break.

How to reproduce:

  1. Change the root node via getContainer to a different node that gets created at run-time via document.querySelector().
  2. Note that when you click play, the audio plays but the current-lime label doesn't update with the current position in the track as its playing. And, the progressBar does not increment itself.

Screen Shot 2021-12-01 at 3 59 58 PM

Edit: After reviewing the closed issues, this issue was closed here, but it was never fixed.

nevermind. fixed it with minimal changes.