Skip to content

Commit 1e7aa19

Browse files
committed
fix(cdk/menu): enable inline popover
1 parent 0efecb4 commit 1e7aa19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cdk/menu/context-menu-trigger.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ export class CdkContextMenuTrigger extends CdkMenuTriggerBase implements OnDestr
137137
positionStrategy: this._getOverlayPositionStrategy(coordinates),
138138
scrollStrategy: this.menuScrollStrategy(),
139139
direction: this._directionality || undefined,
140+
usePopover: true,
140141
});
141142
}
142143

@@ -150,6 +151,7 @@ export class CdkContextMenuTrigger extends CdkMenuTriggerBase implements OnDestr
150151
return createFlexibleConnectedPositionStrategy(this._injector, coordinates)
151152
.withLockedPosition()
152153
.withGrowAfterOpen()
154+
.withPopoverLocation('inline')
153155
.withPositions(this.menuPosition ?? CONTEXT_MENU_POSITIONS);
154156
}
155157

0 commit comments

Comments
 (0)