From 9f82d541136589953e214b8ee26e9fddab362399 Mon Sep 17 00:00:00 2001 From: Iury Nogueira Date: Wed, 4 Mar 2026 16:57:01 -0300 Subject: [PATCH 1/2] fix: dropdown position :ambulance: --- projects/ion/src/lib/dropdown/dropdown.component.scss | 1 - projects/ion/src/lib/dropdown/dropdown.component.ts | 4 +++- projects/ion/src/lib/modal/modal.component.html | 2 +- projects/ion/src/lib/modal/modal.component.ts | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/projects/ion/src/lib/dropdown/dropdown.component.scss b/projects/ion/src/lib/dropdown/dropdown.component.scss index 973aa62bb..fbd8a9004 100644 --- a/projects/ion/src/lib/dropdown/dropdown.component.scss +++ b/projects/ion/src/lib/dropdown/dropdown.component.scss @@ -20,7 +20,6 @@ } .container-options { - position: absolute; z-index: $zIndexLow; display: flex; flex-direction: column; diff --git a/projects/ion/src/lib/dropdown/dropdown.component.ts b/projects/ion/src/lib/dropdown/dropdown.component.ts index e5a8a149f..82f3d931d 100644 --- a/projects/ion/src/lib/dropdown/dropdown.component.ts +++ b/projects/ion/src/lib/dropdown/dropdown.component.ts @@ -161,7 +161,9 @@ export class IonDropdownComponent implements AfterViewInit, OnDestroy { this.overlayRef = this.overlay.create({ positionStrategy, - scrollStrategy: this.overlay.scrollStrategies.reposition(), + scrollStrategy: this.overlay.scrollStrategies.reposition({ + autoClose: true, + }), hasBackdrop: false, }); diff --git a/projects/ion/src/lib/modal/modal.component.html b/projects/ion/src/lib/modal/modal.component.html index 6e56bbc21..226302913 100644 --- a/projects/ion/src/lib/modal/modal.component.html +++ b/projects/ion/src/lib/modal/modal.component.html @@ -54,7 +54,7 @@

{{ configuration().title }}

/> } -