-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
- Check if updating to the latest Preact version resolves the issue (using Preact v10.13.1)
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?
- The next playback rate is supposed to be "2x" as the props are set to
rates = "1 2 3"(docs: https://www.media-chrome.org/docs/en/components/media-playback-rate-button) - The props are not passed to the component when viewing the source of the html
Metadata
Metadata
Assignees
Labels
No labels