Bug: React warning: maxResolution
being passed to DOM Element
#877
Labels
bug
Something isn't working
maxResolution
being passed to DOM Element
#877
Is there an existing issue for this?
Which Mux Elements/Packages does this apply to? Select all that apply
mux-video-react
Which browsers are you using?
Chrome
Which operating systems are you using?
macOS
Description
This is a similar bug to #602 in that Mux video props like
maxResolution
etc are being spread to the underlying<video>
element, causing React warnings. Some props likestreamType
are being plucked out now before...rest
gets spread, but it's an incomplete list.https://github.com/muxinc/elements/blob/main/packages/mux-video-react/src/index.tsx#L27
An ideal fix would stop all props meant to only be passed as Mux media props from being spread to
<video>
so that there aren't similar future issues filed.Reduced test case
No response
Steps to reproduce
mux-video react
component withmaxResolution="1080p"
, e.g:Current Behavior
Warning logged in console
Expected Behavior
No warning logged
Errors
What version of the package are you using?
0.8.3
The text was updated successfully, but these errors were encountered: