Skip to content

Commit 8c7153a

Browse files
authored
Merge pull request #78 from microcmsio/fix/open-options-ismodal
Set isModal to true by default
2 parents 74373a8 + a3d1421 commit 8c7153a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/future/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ export const useModal: UseModal = (options) => {
8181

8282
const open: (options?: { isModal?: boolean }) => void = useCallback(
8383
(options = {}) => {
84+
options.isModal = options.isModal ?? true;
85+
8486
if (options.isModal) {
8587
ref.current?.showModal();
8688
} else {

0 commit comments

Comments
 (0)