aboutsummaryrefslogtreecommitdiffstats
path: root/client/src/com
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2016-01-13 17:26:50 +0200
committerTeemu Suo-Anttila <teemusa@vaadin.com>2016-01-13 17:26:50 +0200
commit1549f1437c0b6ee99dd35f9b556c6c4670410873 (patch)
tree6d75d5299f6d638d7ad2cb89e4e72b6e14574cf5 /client/src/com
parent1147faa895382c1ed64f3334fd6a7ab8e3b550be (diff)
downloadvaadin-framework-1549f1437c0b6ee99dd35f9b556c6c4670410873.tar.gz
vaadin-framework-1549f1437c0b6ee99dd35f9b556c6c4670410873.zip
Clean up SingleSelectionModel client-side on data source change (#19469)
Change-Id: Ie0044341725b858e5cbae150da757aba878fc9ed
Diffstat (limited to 'client/src/com')
-rw-r--r--client/src/com/vaadin/client/connectors/SingleSelectionModelConnector.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/connectors/SingleSelectionModelConnector.java b/client/src/com/vaadin/client/connectors/SingleSelectionModelConnector.java
index f8c2854815..fddf3865a2 100644
--- a/client/src/com/vaadin/client/connectors/SingleSelectionModelConnector.java
+++ b/client/src/com/vaadin/client/connectors/SingleSelectionModelConnector.java
@@ -90,6 +90,16 @@ public class SingleSelectionModelConnector extends
}
@Override
+ public void reset() {
+ super.reset();
+
+ // Clean up selected row
+ if (selectedRow != null) {
+ clearSelectedRow();
+ }
+ }
+
+ @Override
public boolean select(JsonObject row) {
boolean changed = false;