From 2b520133c13905bb84ebd03292fdf8f236d3326a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Dahlstr=C3=B6m?= Date: Fri, 19 Oct 2012 18:21:46 +0300 Subject: [PATCH] Register CssLayout click listeners in onStateChanged instead of onConnectorHierarchyChange (#10003) Test case (tests.components.ClickListeners) committed as part of #9956 Change-Id: I35f41a301ceebc43679098ae033656a18b82c4b1 --- .../src/com/vaadin/client/ui/csslayout/CssLayoutConnector.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/com/vaadin/client/ui/csslayout/CssLayoutConnector.java b/client/src/com/vaadin/client/ui/csslayout/CssLayoutConnector.java index 12ebb6a375..cfdda3dd1c 100644 --- a/client/src/com/vaadin/client/ui/csslayout/CssLayoutConnector.java +++ b/client/src/com/vaadin/client/ui/csslayout/CssLayoutConnector.java @@ -93,6 +93,7 @@ public class CssLayoutConnector extends AbstractLayoutConnector { @Override public void onStateChanged(StateChangeEvent stateChangeEvent) { super.onStateChanged(stateChangeEvent); + clickEventHandler.handleEventHandlerRegistration(); for (ComponentConnector child : getChildComponents()) { if (!getState().childCss.containsKey(child)) { @@ -123,8 +124,6 @@ public class CssLayoutConnector extends AbstractLayoutConnector { */ @Override public void onConnectorHierarchyChange(ConnectorHierarchyChangeEvent event) { - clickEventHandler.handleEventHandlerRegistration(); - int index = 0; for (ComponentConnector child : getChildComponents()) { VCaption childCaption = childToCaption.get(child); -- 2.39.5