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
This one is more convoluted than I like to normally report, but I still managed to run into it.
Given the following structure:
importComponentfrom'metal-jsx';classFormextendsComponent{render(){return<form>{this.props.children}</form>;}}classWrapperextendsComponent{render(){return<divclass="well">{this.props.children}</div>;}}classCardextendsComponent{rendered(){console.log("Card:",this.refs.form);}render(){// Here is where things break down, we need to both assign the// JSX expression to a variable, and then wrap it in another component.//// If we just inline the value of content, or change Wrapper to something// like a div instead, everything works fine.constcontent=<div>{this.props.children}</div>;return<Wrapper>{content}</Wrapper>}}classAppextendsComponent{rendered(){console.log("App:",this.refs.form);}render(){return(<Card><Formref="form"/></Card>);}}exportdefaultApp;
This one is more convoluted than I like to normally report, but I still managed to run into it.
Given the following structure:
You will see the following in the console:
The text was updated successfully, but these errors were encountered: