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

Selection filter causes flickering #37

Open
javier-godoy opened this issue Dec 3, 2022 · 1 comment
Open

Selection filter causes flickering #37

javier-godoy opened this issue Dec 3, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@javier-godoy
Copy link
Member

javier-godoy commented Dec 3, 2022

SelectionFilter works by deselecting an item if it cannot be selected.
If the grid has single selection mode, this approach causes flickering (because deselection is handled in the server side)

// Revert selection if item cannot be selected
if (!canSelect(item)) {
event.getSource().deselect(item);
}

Vaadin 23.2.10 / grid-helpers 0.3.2-snapshot

@javier-godoy javier-godoy added the bug Something isn't working label Dec 5, 2022
@paodb paodb moved this to To Do in Flowing Code Addons May 6, 2024
@mlopezFC
Copy link
Member

I was able to reproduce this in Vaadin 24, but I also see that the "active" checkbox is not working well in the All features tab. If I put all the items as "active" some of them still work as inactive and cause the flickering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To Do
Development

No branches or pull requests

2 participants