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

Multiselect: fails to automatically scroll to the first selected item #17321

Closed
4 tasks
rosenthalj opened this issue Jan 7, 2025 · 0 comments · Fixed by #17322
Closed
4 tasks

Multiselect: fails to automatically scroll to the first selected item #17321

rosenthalj opened this issue Jan 7, 2025 · 0 comments · Fixed by #17322
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@rosenthalj
Copy link
Contributor

rosenthalj commented Jan 7, 2025

Describe the bug

The PrimeNG p-multiselect component does not automatically scroll to the first selected item when the multuiselect's dropdown is opened.

This worked in v17

The first video shows the current PrimeNG v19 multiselect group demo not working.

v19MultiselectAutoScrollBad.mov

The second video shows the current PrimeNG v17 multiselect group demo working properly

v17MultiselectAutoScrollGood.mov

Note: I chose the multiselect group demo because the basic demo doesn't have enough option items

Pull Request Link

#17322

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://primeng.org/multiselect#group

Environment

n/a

Angular version

18

PrimeNG version

v19

Node version

n/a

Browser(s)

all broswers

Steps to reproduce the behavior

  1. Start the PrimeNG v19 multiselect group demo: https://primeng.org/multiselect#group
  2. Using the dropdown Select the city Kyoto
  3. Reopen the dropdown
    -- the city Kyoto is selected, but the dropdown has not scrolled to Kyoto

Expected behavior

Repeat the steps using the PrimeNG v17 demo: https://v17.primeng.org/multiselect#group
-- the city Kyoto is selected and the dropdown scrolls to th Kyoto

@rosenthalj rosenthalj added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 7, 2025
@mertsincan mertsincan added this to the 19.0.6 milestone Jan 15, 2025
@github-project-automation github-project-automation bot moved this to Review in PrimeNG Jan 15, 2025
@mertsincan mertsincan 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 Jan 15, 2025
@github-project-automation github-project-automation bot moved this from Review to Done in PrimeNG Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants