Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: React does not recognize the allowTransparency prop on a DOM element. #22244

Closed
akashshyamdev opened this issue Sep 4, 2021 · 2 comments
Labels
Component: DOM Resolution: Expected Behavior Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@akashshyamdev
Copy link

I'm using an iframe:

<iframe
				width="100%"
				height="100%"
				frameBorder="0"
				title="Spline 3D Animation"
				allowTransparency={true}
				style={{ backgroundColor: "transparent" }}
				src="https://my.spline.design/portfolio-fe0fd4b29cba7bfea175804f995a9f8a/"
></iframe>

The console shows:

Warning: React does not recognize the `allowTransparency` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `allowtransparency` instead. If you accidentally passed it from a parent component, remove it from the DOM element.

React version: ^17.0.2

Link to code example:
The entire code for this is here https://github.com/akashshyamdev/portfolio-latest/blob/master/src/containers/Home/Hero.tsx

The current behavior

Screenshot 2021-09-04 at 09 39 00

The expected behavior

I expect the black background to be transparent

@akashshyamdev akashshyamdev added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Sep 4, 2021
@hariombalhara
Copy link

@akashshyamdev See if this helps remarkablemark/html-react-parser#165

@eps1lon
Copy link
Collaborator

eps1lon commented Sep 5, 2021

allowTransparency is an IE-only attribute which was removed in IE 9. You probalby want to set the background transparent with some CSS.

If you know what you're doing, you can use <iframe allowtransparency />

For more context, see #10823.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: DOM Resolution: Expected Behavior Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

No branches or pull requests

3 participants