primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
9.53k stars 4.47k forks source link

Treeselect: Scroll height should be removed when there are no result in treeselect-items. #15349

Closed sandeshshrestha closed 2 weeks ago

sandeshshrestha commented 2 weeks ago

Describe the bug

TreeSelect when used with virtualScroll:true and filter:true keeps the height even where there are no items in dropdown.

image

image

Environment

Pop!_OS 22.04 LTS

Reproducer

No response

Angular version

17.2.0

PrimeNG version

17.14.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.11.1

Browser(s)

Chromium 124.0.6367.60

Steps to reproduce the behavior

No response

Expected behavior

The style height: {{scrollHeight}} must be removed when there are no items.