diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2016-01-13 17:26:50 +0200 |
---|---|---|
committer | elmot <elmot@vaadin.com> | 2016-01-21 17:11:59 +0200 |
commit | c5b39ac03e8919b1b33870828fdcbd30ef9a905e (patch) | |
tree | c218fbe201a24300484da207b5cfc555709ec77b /client/src | |
parent | 8d21d0630a863f2f9d408543db2bd990c5de3444 (diff) | |
download | vaadin-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.java | 10 |
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; |