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

Autocomplete: with virtual scroll and item selected, it doesn't show items in dropdown and doesn't keep the selected item position when scrolling #16063

Closed
rbbp23 opened this issue Jul 19, 2024 · 0 comments · Fixed by #16095 · 4 remaining pull requests
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@rbbp23
Copy link

rbbp23 commented Jul 19, 2024

Describe the bug

When using Autocomplete with virtual scroll, if we select an item and then scroll down, when we open the dropdown again, everything is blank. If we scroll again we see it scrolls from the beginning and not from the item that was selected.

Environment

Angular 17+
PrimeNG 17.18.5

Reproducer

No response

Angular version

17

PrimeNG version

17.18.5

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.x

Browser(s)

No response

Steps to reproduce the behavior

This can be reproduced on the official documentation:

  1. Go to https://primeng.org/autocomplete#virtualscroll
  2. Open the dropdown, scroll down and select Item 74 (for example)
  3. Open the dropdown again. Blank container is displayed
Screenshot 2024-07-19 at 15 40 25 4. Scroll down, we can see the scroll starts from Item 0 instead of Item 74. 5. Closing and reopening the dropdown will show the same blank container.

Expected behavior

No response

@rbbp23 rbbp23 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jul 19, 2024
@mehmetcetin01140 mehmetcetin01140 added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jul 24, 2024
@mehmetcetin01140 mehmetcetin01140 self-assigned this Jul 24, 2024
@mehmetcetin01140 mehmetcetin01140 added this to the 17.18.6 milestone Jul 24, 2024
mehmetcetin01140 added a commit that referenced this issue Jul 24, 2024
…t doesn't show items in dropdown and doesn't keep the selected item position when scrolling
cetincakiroglu added a commit that referenced this issue Jul 25, 2024
Fixed #16063 - Autocomplete: with virtual scroll and item selected, i…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment