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

MultiSelectListBox items get deselected after a filter is added to the data provider #1057

Open
javier-godoy opened this issue Dec 9, 2020 · 0 comments

Comments

@javier-godoy
Copy link
Contributor

As discussed here, MultiSelectListBox presents the same behavior that was reported for Select in https://github.com/vaadin/vaadin-select/issues/239

The snippet from the forum reproduces the issue in Vaadin 14.4.2:

MultiSelectListBox<String> stringMultiSelectListBox = new MultiSelectListBox<>();
stringMultiSelectListBox.setItems(Arrays.asList("1", "2", "3", "4", "5"));
stringMultiSelectListBox.select("5");
((ListDataProvider<String>)stringMultiSelectListBox.getDataProvider()).setFilter(s -> s.equals("5"));
add(stringMultiSelectListBox);
@vaadin-bot vaadin-bot transferred this issue from vaadin/vaadin-list-box May 19, 2021
@vaadin-bot vaadin-bot transferred this issue from vaadin/web-components May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants