Skip to content

fix(combobox): ensure most recent selected item is active when combobox is opened #6973

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

Merged
merged 2 commits into from
May 18, 2023

Conversation

jcfranco
Copy link
Member

Related Issue: N/A

Summary

This should help users recall the most recent selection when opening the combobox. Previously, this was not ideal if there is a large list of items since the active item index would start from the top when opened. This is especially noticeable in single-selection mode where the input showing the selected value is cleared on open.

Stems from #6947.

@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label May 17, 2023
@jcfranco jcfranco added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label May 17, 2023
@jcfranco jcfranco marked this pull request as ready for review May 17, 2023 19:56
@jcfranco jcfranco requested a review from a team as a code owner May 17, 2023 19:56
Copy link
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 👍

@jcfranco jcfranco added pr ready for visual snapshots Adding this label will run visual snapshot testing. and removed pr ready for visual snapshots Adding this label will run visual snapshot testing. labels May 18, 2023
@jcfranco jcfranco merged commit 8476595 into master May 18, 2023
@jcfranco jcfranco deleted the jcfranco/ensure-combobox-opens-on-active-item branch May 18, 2023 02:44
@github-actions github-actions bot added this to the 2023 May Priorities milestone May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. pr ready for visual snapshots Adding this label will run visual snapshot testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants