vaadin / vaadin/framework

ComboBox with item filtering and a selected item will not open the popup to display the currently selected item

Open
#12,616 0 comments 0 reactions 1 assignee View on GitHub

@thevaadinman is already working on this.

Since Apr 24, 2024.

bug
Dominant language
Java
Stars
1.8k
Forks
717
Avg merge
2d 6h
Merged PRs (30d)
3

Description

This issue was previously considered fixed, but had to be reverted due to unforeseen side effects.

The effect is as follows:

  • There is a ComboBox with a large amount of items.
  • A value is chosen from the ComboBox by typing in part of the desired item name, and the item is selected by clicking on it in the dropdown menu
  • The popup closes upon selection
  • The user manually opens the ComboBox dropdown
  • The dropdown should be scrolled to a position in the list which shows the currently selected item. Instead, the first page of results is shown.
  • If the dropdown is dismissed and opened again, the ComboBox will have scrolled to the correct position in the list.

This is due to the internal state of the ComboBox client-side widget getting confused regarding the tracking of the current page.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.