summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/src/com/vaadin/client/ui/VOverlay.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/ui/VOverlay.java b/client/src/com/vaadin/client/ui/VOverlay.java
index 2f5df6d4f3..e2c9001fed 100644
--- a/client/src/com/vaadin/client/ui/VOverlay.java
+++ b/client/src/com/vaadin/client/ui/VOverlay.java
@@ -241,10 +241,10 @@ public class VOverlay extends PopupPanel implements CloseHandler<PopupPanel> {
private void removeShadowIfPresent() {
if (isShadowAttached()) {
- shadow.removeFromParent();
-
// Remove event listener from the shadow
unsinkShadowEvents();
+
+ shadow.removeFromParent();
}
}