summaryrefslogtreecommitdiffstats
path: root/client/src
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2016-01-13 17:26:50 +0200
committerelmot <elmot@vaadin.com>2016-01-21 17:11:59 +0200
commitc5b39ac03e8919b1b33870828fdcbd30ef9a905e (patch)
treec218fbe201a24300484da207b5cfc555709ec77b /client/src
parent8d21d0630a863f2f9d408543db2bd990c5de3444 (diff)
downloadvaadin-framework-c5b39ac03e8919b1b33870828fdcbd30ef9a905e.tar.gz
vaadin-framework-c5b39ac03e8919b1b33870828fdcbd30ef9a905e.zip
Clean up SingleSelectionModel client-side on data source change (#19469)
Change-Id: Ida6a093121663731853404598e8b382969101850
Diffstat (limited to 'client/src')
-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;