Skip to content

Commit 6058e10

Browse files
committed
feat: add stopEvent property to ROverlay
1 parent 5f7de77 commit 6058e10

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ROverlay.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ export interface ROverlayProps extends PropsWithChildren<unknown> {
3939
autoPosition?: boolean;
4040
/** Called immediately on click */
4141
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
42+
/** Stop event propagation */
43+
stopEvent?: boolean;
4244
}
4345

4446
/**
@@ -62,7 +64,8 @@ export class ROverlayBase<P extends ROverlayProps> extends RlayersBase<P, Record
6264
this.ol = new Overlay({
6365
autoPan: props.autoPan,
6466
offset: props.offset,
65-
positioning: props.positioning
67+
positioning: props.positioning,
68+
stopEvent: props.stopEvent
6669
});
6770
this.containerRef = React.createRef();
6871
}

0 commit comments

Comments
 (0)