fix: Retain fullscreen modal as default for those triggered outside of showModal
This commit is contained in:
@@ -22,7 +22,7 @@ function Dialogs() {
|
||||
<Modal
|
||||
key={id}
|
||||
isOpen={modal.isOpen}
|
||||
fullscreen={modal.fullscreen}
|
||||
fullscreen={modal.fullscreen ?? false}
|
||||
onRequestClose={() => dialogs.closeModal(id)}
|
||||
title={modal.title}
|
||||
>
|
||||
|
||||
@@ -31,7 +31,7 @@ type Props = {
|
||||
const Modal: React.FC<Props> = ({
|
||||
children,
|
||||
isOpen,
|
||||
fullscreen,
|
||||
fullscreen = true,
|
||||
title = "Untitled",
|
||||
onRequestClose,
|
||||
}: Props) => {
|
||||
|
||||
Reference in New Issue
Block a user