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
<Icon spanRef={myFunc} /> should let me grab the resultant span's DOM element (or null).
Current Behavior
No such property exists.
Context
Was wanting to create an Icon element that has a CSS opacity:0 and transition-property:opacity that immediately becomes CSS opacity:1 on render. However, there is no way to grab the Icon's span on render, currently, to manipulate it. I feel this could also apply to any other scenario besides my own.
The text was updated successfully, but these errors were encountered:
@CharlesStover Use the innerRef property. In the future, we will forward the ref to the root element: #10825. From your use case, I would rather be using the style property.
Expected Behavior
<Icon spanRef={myFunc} />
should let me grab the resultant span's DOM element (or null).Current Behavior
No such property exists.
Context
Was wanting to create an Icon element that has a CSS
opacity:0
andtransition-property:opacity
that immediately becomes CSSopacity:1
on render. However, there is no way to grab the Icon's span on render, currently, to manipulate it. I feel this could also apply to any other scenario besides my own.The text was updated successfully, but these errors were encountered: