Describe the bug
When using template prop it's in ModalContainer modal is always rendered.
I have a layout:
const ModalLayout = (props: any) => {
return (
<>
<div className={classes.background} onClick={() => Modal.closeAll()}></div>,
<div className={classes.modal}>
<div>
<p onClick={() => {Modal.closeAll()}} className={classes.closeModal}>
<X />
</p>
</div>
<div>
{props.children}
</div>
</div>
</>
);
};
And I have a ModalContainer:
<ModalContainer template={ModalLayout}/>
It always renders without triggering any opens.
Describe the bug
When using template prop it's in ModalContainer modal is always rendered.
I have a layout:
And I have a ModalContainer:
It always renders without triggering any opens.