summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAnna Koskinen <Ansku@users.noreply.github.com>2021-07-21 12:44:51 +0300
committerGitHub <noreply@github.com>2021-07-21 12:44:51 +0300
commit40e35575c8268868b38f725e3da43017e8992e87 (patch)
treea3cdda534b51571c27458bbe87f37cb414f6fc92 /client
parent512703d56c11032740ed9d0c60ee180a438af415 (diff)
downloadvaadin-framework-40e35575c8268868b38f725e3da43017e8992e87.tar.gz
vaadin-framework-40e35575c8268868b38f725e3da43017e8992e87.zip
Ensure Grid details rows get a full refresh when a column is sorted. (#12342)
Fixes #12341
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/connectors/grid/DetailsManagerConnector.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/main/java/com/vaadin/client/connectors/grid/DetailsManagerConnector.java b/client/src/main/java/com/vaadin/client/connectors/grid/DetailsManagerConnector.java
index de3c1bdee2..02b8b702fc 100644
--- a/client/src/main/java/com/vaadin/client/connectors/grid/DetailsManagerConnector.java
+++ b/client/src/main/java/com/vaadin/client/connectors/grid/DetailsManagerConnector.java
@@ -143,7 +143,8 @@ public class DetailsManagerConnector extends AbstractExtensionConnector {
boolean scrollToFirst = numberOfRows == 1
&& latestVisibleRowRange.contains(firstRowIndex);
- if (!newVisibleRowRange.equals(latestVisibleRowRange)) {
+ if (!newVisibleRowRange.equals(latestVisibleRowRange)
+ || updatedRange.equals(newVisibleRowRange)) {
// update visible range
latestVisibleRowRange = newVisibleRowRange;