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
{{ message }}
Repository navigation
EuiNavDrawerGroup is too strict about what can be passed in as children #2709
This makes it difficult to conditionally render segments of the nav.
Two things which to better enable conditional rendering to be easier:
Allowing React.Fragment>
Allowing undefined
Made-up code example of what I'm trying to accomplish:
functionconditionRender(){if(condition)return(<EuiNavDrawerGrouplistItems={linksTwo}/>);// All nested navs in here are broken 👇return(<><EuiNavDrawerGrouplistItems={linksTwo}/><EuiNavDrawerGrouplistItems={linksThree}/></>);}constrender=()=>(<EuiNavDrawer><EuiNavDrawerGrouplistItems={linksOne}/>{this.conditionalRender()}</EuiNavDrawer>););
changed the title [-]`EuiNavDrawerGroup` doesn't support nested navs if it's wrapped by a `Fragment`[/-][+]`EuiNavDrawerGroup` is too strict about what can be passed in as children[/+]on Dec 20, 2019
Activity
[-]`EuiNavDrawerGroup` doesn't support nested navs if it's wrapped by a `Fragment`[/-][+]`EuiNavDrawerGroup` is too strict about what can be passed in as children[/+]