ported schema builder
This commit is contained in:
@@ -17,7 +17,7 @@ export const Portal: FC<PropsWithChildren<IProps>> = (
|
||||
document.body.appendChild(container);
|
||||
setContainer(container);
|
||||
return () => {
|
||||
document.body.removeChild(container);
|
||||
document.body.contains(container) && document.body.removeChild(container);
|
||||
};
|
||||
}, [className, el]);
|
||||
|
||||
|
Reference in New Issue
Block a user