Skip to content

Commit 94ad1d2

Browse files
committed
fix bugs with popup modal
1 parent ae71207 commit 94ad1d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/ui/modal/Modal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ const Root = (props: RootProps) => {
6767
const onBackgroundClick = (event: MouseEvent) => {
6868
if (props.doNotCloseOnBackgroundClick) return;
6969
if (event.target !== event.currentTarget) return;
70+
event.stopImmediatePropagation();
7071

7172
const xDistance = Math.abs(startClick.x - event.clientX);
7273
const yDistance = Math.abs(startClick.y - event.clientY);

0 commit comments

Comments
 (0)