diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2012-10-19 18:21:46 +0300 |
---|---|---|
committer | Johannes Dahlström <johannesd@vaadin.com> | 2012-10-19 18:23:25 +0300 |
commit | 2b520133c13905bb84ebd03292fdf8f236d3326a (patch) | |
tree | a97492cd2855b63f778c93b011fb62478886dff5 | |
parent | 06efa74eafcf78e3654c60bd5c14bb97bed2b13d (diff) | |
download | vaadin-framework-2b520133c13905bb84ebd03292fdf8f236d3326a.tar.gz vaadin-framework-2b520133c13905bb84ebd03292fdf8f236d3326a.zip |
Register CssLayout click listeners in onStateChanged instead of onConnectorHierarchyChange (#10003)
Test case (tests.components.ClickListeners) committed as part of #9956
Change-Id: I35f41a301ceebc43679098ae033656a18b82c4b1
-rw-r--r-- | client/src/com/vaadin/client/ui/csslayout/CssLayoutConnector.java | 3 |
1 files changed, 1 insertions, 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); |