Skip to content

Commit 87604e8

Browse files
committed
Fix modal when modal is open on mounting
1 parent 6850482 commit 87604e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/modal/useModal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ export default function useModal(visible, setVisible) {
4141
};
4242
},
4343
}),
44-
[visible],
44+
[visible, mounted],
4545
);
4646
}

0 commit comments

Comments
 (0)