diff --git a/packages/primeng/src/cascadeselect/cascadeselect.ts b/packages/primeng/src/cascadeselect/cascadeselect.ts index f3a4021e38c..2dfa0af8338 100755 --- a/packages/primeng/src/cascadeselect/cascadeselect.ts +++ b/packages/primeng/src/cascadeselect/cascadeselect.ts @@ -319,7 +319,7 @@ export class CascadeSelectSub extends BaseComponent implements OnInit { (onHide)="hide($event)" > -
+
>; + transformOrigin?: string; + _showTransitionOptions: string = ''; _hideTransitionOptions: string = ''; @@ -1388,6 +1390,7 @@ export class CascadeSelect extends BaseComponent implements OnInit { const activeOptionPath = this.activeOptionPath(); if (isNotEmpty(activeOptionPath)) { this.overlayViewChild.alignOverlay(); + this.transformOrigin = this.overlayViewChild.overlayEl?.style?.['transform-origin']; } }); } diff --git a/packages/primeng/src/cascadeselect/style/cascadeselectstyle.ts b/packages/primeng/src/cascadeselect/style/cascadeselectstyle.ts index 0f60c7ae9ad..14355204d41 100644 --- a/packages/primeng/src/cascadeselect/style/cascadeselectstyle.ts +++ b/packages/primeng/src/cascadeselect/style/cascadeselectstyle.ts @@ -180,6 +180,11 @@ p-cascadeselect.ng-invalid.ng-dirty .p-cascadeselect-label.p-placeholder { top: 0; } +.bottom-aligned .p-cascadeselect-option-active > .p-cascadeselect-option-list { + top: auto; + bottom: 0; +} + .p-cascadeselect-option-content { display: flex; align-items: center;