Skip to content

Preact + media-chrome: Props are not passed correctly #4486

@DCsunset

Description

@DCsunset
  • 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:

  1. Click on playback rate button "1x"
  2. The next rate is "1.2x"

Expected behavior
What should have happened when following the steps above?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions