Skip to content

Commit 9bd0f2b

Browse files
Bug fix: Right click on the 'New maplayer' dialog would close it (#3247)
* Bug fix: Right click on the new layer dialog would close it. * changelog
1 parent 25d4bfc commit 9bd0f2b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@itwin/map-layers",
5+
"comment": "Bug fix: Right click on the new map layer dialog would close it.",
6+
"type": "none"
7+
}
8+
],
9+
"packageName": "@itwin/map-layers"
10+
}

extensions/map-layers/src/ui/widget/AttachLayerPopupButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ export function AttachLayerPopupButton(props: AttachLayerPopupButtonProps) {
435435
onOutsideClick={handleOutsideClick}
436436
target={buttonRef.current}
437437
closeOnEnter={false}
438+
closeOnContextMenu={false}
438439
>
439440
<div ref={panelRef} className="map-sources-popup-panel" >
440441
<AttachLayerPanel isOverlay={props.isOverlay} onLayerAttached={handleLayerAttached} />

0 commit comments

Comments
 (0)