Skip to content

Commit

Permalink
Merge pull request #16061 from primefaces/issue-16051
Browse files Browse the repository at this point in the history
Fixed #16051 - Issue with ListBox and style since 17.18.4
  • Loading branch information
cetincakiroglu authored Jul 18, 2024
2 parents 4382349 + adeee48 commit 5df7895
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/app/components/listbox/listbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,7 @@ export const LISTBOX_VALUE_ACCESSOR: any = {
</span>
</ng-template>
</div>
<div
[ngClass]="'p-listbox-list-wrapper'"
[ngStyle]="listStyle"
[class]="listStyleClass"
[ngStyle]="{
'max-height': virtualScroll ? 'auto' : scrollHeight || 'auto'
}"
>
<div [ngClass]="'p-listbox-list-wrapper'" [ngStyle]="listStyle" [class]="listStyleClass" [style.max-height]="virtualScroll ? 'auto' : scrollHeight || 'auto'">
<p-scroller
#scroller
*ngIf="virtualScroll"
Expand Down Expand Up @@ -678,13 +671,7 @@ export class Listbox implements AfterContentInit, OnInit, ControlValueAccessor,
} else return filterValue ? this.filterService.filter(options, this.searchFields, filterValue, this.filterMatchMode, this.filterLocale) : options;
});

constructor(
public el: ElementRef,
public cd: ChangeDetectorRef,
public filterService: FilterService,
public config: PrimeNGConfig,
private renderer: Renderer2
) {}
constructor(public el: ElementRef, public cd: ChangeDetectorRef, public filterService: FilterService, public config: PrimeNGConfig, private renderer: Renderer2) {}

ngOnInit() {
this.id = this.id || UniqueComponentId();
Expand Down

0 comments on commit 5df7895

Please sign in to comment.