Describe the bug
When using Preact with react components in media-chrome package, the props are not passed to the component correctly.
For example, the rates for MediaPlaybackButton couldn't be set correctly. (it works correctly when using React)
To Reproduce
StackBlitz: https://stackblitz.com/edit/create-preact-starter-l7wbnq?file=src%2Findex.jsx
Steps to reproduce the behavior:
- Click on playback rate button "1x"
- The next rate is "1.2x"
Expected behavior
What should have happened when following the steps above?
Describe the bug
When using Preact with react components in
media-chromepackage, the props are not passed to the component correctly.For example, the rates for
MediaPlaybackButtoncouldn't be set correctly. (it works correctly when using React)To Reproduce
StackBlitz: https://stackblitz.com/edit/create-preact-starter-l7wbnq?file=src%2Findex.jsx
Steps to reproduce the behavior:
Expected behavior
What should have happened when following the steps above?
rates = "1 2 3"(docs: https://www.media-chrome.org/docs/en/components/media-playback-rate-button)