You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use layout, height and width attributes on AmpIframe I get Typescript error, saying that these properties do not exist in the respective type. After digging a little deeper, I found that the responsible type (AmpIframeProps) extends with generic type React.HTMLAttributes as opposed to React.IframeHTMLAttributes:
The text was updated successfully, but these errors were encountered:
ivanbechevmrf
changed the title
AmpIframe does not support height and width attributes.
AmpIframe does not support height and width attributes.
Oct 2, 2020
ivanbechevmrf
changed the title
AmpIframe does not support height and width attributes.
AmpIframe does not support height and width and layout attributes.
Oct 6, 2020
Hello,
When trying to use
layout
,height
andwidth
attributes onAmpIframe
I get Typescript error, saying that these properties do not exist in the respective type. After digging a little deeper, I found that the responsible type (AmpIframeProps
) extends with generic typeReact.HTMLAttributes
as opposed toReact.IframeHTMLAttributes
:filename:
amphtml.d.ts
The text was updated successfully, but these errors were encountered: