From 40e35575c8268868b38f725e3da43017e8992e87 Mon Sep 17 00:00:00 2001 From: Anna Koskinen Date: Wed, 21 Jul 2021 12:44:51 +0300 Subject: Ensure Grid details rows get a full refresh when a column is sorted. (#12342) Fixes #12341 --- .../com/vaadin/client/connectors/grid/DetailsManagerConnector.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client') 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; -- cgit v1.2.3