Skip to content

Commit

Permalink
fix: click outside on input select dropdown (#1140)
Browse files Browse the repository at this point in the history
  • Loading branch information
allan-chagas-brisa authored Sep 13, 2024
1 parent 90a38c0 commit ba5a46f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[class.multiple-input--disabled]="disabled"
[class.multiple-input]="currentOption?.multiple"
>
<div class="dropdown-container" (clickOutside)="onClickOutside()">
<div class="dropdown-container">
<button
type="button"
data-testid="ion-select-button"
Expand All @@ -24,6 +24,7 @@
(selected)="handleSelect($event)"
[multiple]="false"
[required]="true"
(closeDropdown)="closeDropdown()"
>
</ion-dropdown>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class IonInputSelectComponent implements OnInit {
});
}

public onClickOutside(): void {
public closeDropdown(): void {
this.dropdownVisible = false;
}

Expand Down

0 comments on commit ba5a46f

Please sign in to comment.