Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component: MultiSelect with virtual scroll #16708

Open
mojesto opened this issue Nov 7, 2024 · 2 comments · May be fixed by #16808
Open

Component: MultiSelect with virtual scroll #16708

mojesto opened this issue Nov 7, 2024 · 2 comments · May be fixed by #16808
Labels
Status: Pending Review Issue or pull request is being reviewed by Core Team
Milestone

Comments

@mojesto
Copy link

mojesto commented Nov 7, 2024

Describe the bug

The bug occurs when a user searches in the multiselect component with virtual scroll and reaches a "No results found" state. Upon partially clearing the search term to bring back multiple results, the dropdown panel height does not automatically expand to display all results, remaining limited to a single row height.

Environment

MacOS, Chrome

Reproducer

No response

Angular version

18.2.11

PrimeNG version

17.18.11

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.11.1

Browser(s)

Chrome 130

Steps to reproduce the behavior

Open the multiselect virtual scroll demo at https://primeng.org/multiselect#virtualscroll.

  1. In the search input, type "emf" so that "No results found" appears.
  2. Then, delete the "f" from the search field.
  3. Despite many results now appearing, the dropdown panel height remains short, showing only one row.

Expected behavior

Dropdown panel automatically expands it's height to display multiple results

@mojesto mojesto added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 7, 2024
@mojesto mojesto changed the title Component: MultiSelect Component: MultiSelect with virtual scroll Nov 7, 2024
@rgolonko
Copy link

rgolonko commented Nov 12, 2024

In my case working solutions is:

Add @ViewChild('autoComplete') autoComplete: AutoComplete;
In callback method onPanelShow i added a line: this.autoComplete.scroller.unbindResizeListener();
Function onResize in scroller component imo is the source of the problem and it is not needed in case of AutoComplete/MultiSelect components. Invoked function calculateAutoSize() is enough and call onResize just break the height of panel.

I have the same problem as reported in: #16727

@mertsincan mertsincan added Resolution: Help Wanted Issue or pull request requires extra help and feedback and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 19, 2024
@mertsincan mertsincan added this to the Future milestone Nov 19, 2024
Copy link

Due to PrimeNG team's busy roadmap, this issue is available for anyone to work on. Make sure to reference this issue in your pull request. ✨ Thank you for your contribution! ✨

@mertsincan mertsincan modified the milestones: Future, 18.0.0-rc.2, 17.18.13 Nov 22, 2024
@mertsincan mertsincan added Status: Pending Review Issue or pull request is being reviewed by Core Team and removed Resolution: Help Wanted Issue or pull request requires extra help and feedback labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Pending Review Issue or pull request is being reviewed by Core Team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants