mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix CPU spike when opening PodDetails from MonacoEditor
- Don't mount the children of DrawerParamToggler when closed (default) Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
23f7d438f1
commit
9a42523a24
@ -38,9 +38,11 @@ export class DrawerParamToggler extends React.Component<DrawerParamTogglerProps,
|
||||
<Icon material={icon}/>
|
||||
</div>
|
||||
</div>
|
||||
<div className={cssNames("param-content", { open })}>
|
||||
{children}
|
||||
</div>
|
||||
{open && (
|
||||
<div className={cssNames("param-content", { open })}>
|
||||
{children}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user