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

Open
4 tasks
rosenthalj opened this issue Jan 7, 2025 · 0 comments · May be fixed by #17322
Open
4 tasks

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

rosenthalj opened this issue Jan 7, 2025 · 0 comments · May be fixed by #17322
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

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
@rosenthalj rosenthalj linked a pull request Jan 7, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant