styles are not rerendering after state change
divyam234 opened this issue · comments
divyam234 commented
I am trying to change plyr color w.r.t dark / light mode using --plyr-color-main property by passing it in style prop . I have noticed that Plyr instance doesn't re-render if styles are changed . I am assuming it only changes when source and options property are changed.
Szabolcs Locsmandi commented
Try wrapping it with a div, and change the style attribute of that div.