Skip to content

Commit 6306a12

Browse files
committed
fix(cdk/menu): disable flexible dimensions (#30086)
Disables flexible dimensions for the CDK menu since supporting them properly requires some CSS tweaks and we don't control the CSS of the menu. Fixes #30077. (cherry picked from commit 85d2639)
1 parent 08c4fd6 commit 6306a12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk/menu/menu-trigger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export class CdkMenuTrigger extends CdkMenuTriggerBase implements OnDestroy {
259259
.position()
260260
.flexibleConnectedTo(this._elementRef)
261261
.withLockedPosition()
262-
.withGrowAfterOpen()
262+
.withFlexibleDimensions(false)
263263
.withPositions(this._getOverlayPositions());
264264
}
265265

0 commit comments

Comments
 (0)