-
Notifications
You must be signed in to change notification settings - Fork 66
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
fix: do not trigger data communicator reset when no filters #6712
Conversation
910e946
to
04dc622
Compare
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
Meanwhile, I created #6713 in which I described a solution that could help resolve this issue completely. |
Hi @vursen and @vursen, when i performed cherry-pick to this commit to 23.5, i have encountered the following issue. Can you take a look and pick it manually? |
…6715) Co-authored-by: Sergey Vinogradov <[email protected]>
…6716) Co-authored-by: Sergey Vinogradov <[email protected]>
Thank you so much for implementing a fix. What would be the release schedule for this? Will it make 24.5? |
@gektron Yes, this fix will be included in the upcoming 24.5 release. |
This ticket/PR has been released with Vaadin 24.6.0.alpha1 and is also targeting the upcoming stable 24.6.0 version. |
The
setDropMode
andsetRowsDraggable
methods were updated to calldataCommunicator.reset
to ensure drop filters are applied when the drop mode is set dynamically. While this fixed the original issue, it introduced an unintended side effect: an annoying scroll position reset that now happens e.g. when setting the drop mode dynamically on drag start.Unfortunately, resolving this new issue completely is impossible without introducing new API in
DataCommunicator
. An API that would allow us to requestrefreshItem
for only items that are in the viewport.Since not working filters appear to be a more critical issue, it was decided to keep the original change but try to mitigate its impact by preventing the data reset when no filters are set.
Fixes #6662