-
Notifications
You must be signed in to change notification settings - Fork 207
Doesn't forward playsInline
prop to <video>
components
#412
Comments
Looks like this comes from the upstream project I am curious though - is there a possibility of removing this whitelist? Seems like it's destined to get out of sync as things change in React. Is there a downside in just forwarding all unknown props? |
The problem is if we forward all the props then we could send props to dom nodes that don't actually belong there and can cause some issues (and React will warn against it, resulting in many console log statements). |
Glad you got it fixed! |
Yeah, interesting — I guess I figured that was more of the user's responsibility to avoid, but I see how it's a potential footgun. This issue is fixed upstream, but looks like the NPM distribution of glamorous uses |
Ah, yes, that's correct. I can fix that right now. |
Using:
Relevant code.
Actual result:
Expected result:
https://codesandbox.io/s/8k2wx5p3m0
Assuming this is a whitelist in the code somewhere, I'll try to follow up with a PR shortly.
The text was updated successfully, but these errors were encountered: