From 1549f1437c0b6ee99dd35f9b556c6c4670410873 Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Wed, 13 Jan 2016 17:26:50 +0200 Subject: Clean up SingleSelectionModel client-side on data source change (#19469) Change-Id: Ie0044341725b858e5cbae150da757aba878fc9ed --- .../client/connectors/SingleSelectionModelConnector.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 @@ -89,6 +89,16 @@ public class SingleSelectionModelConnector extends return null; } + @Override + public void reset() { + super.reset(); + + // Clean up selected row + if (selectedRow != null) { + clearSelectedRow(); + } + } + @Override public boolean select(JsonObject row) { boolean changed = false; -- cgit v1.2.3