summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTatu Lund <tatu@vaadin.com>2021-12-16 19:04:24 +0200
committerGitHub <noreply@github.com>2021-12-16 19:04:24 +0200
commit08fc6504b47aedc4b6a15d32017af165ab3eaf0d (patch)
tree502f16f301360ead7902fa354881320313df67b4
parent3b5d228c3137eca4e1c934ffa13008677b46dc28 (diff)
downloadvaadin-framework-08fc6504b47aedc4b6a15d32017af165ab3eaf0d.tar.gz
vaadin-framework-08fc6504b47aedc4b6a15d32017af165ab3eaf0d.zip
Ensure resize and dragging curtain cleanup when a window is closed7.7.30
(#12499)
-rw-r--r--client/src/main/java/com/vaadin/client/ui/VWindow.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/VWindow.java b/client/src/main/java/com/vaadin/client/ui/VWindow.java
index 9bf586231f..6ecfbf7148 100644
--- a/client/src/main/java/com/vaadin/client/ui/VWindow.java
+++ b/client/src/main/java/com/vaadin/client/ui/VWindow.java
@@ -285,6 +285,12 @@ public class VWindow extends VOverlay implements ShortcutActionHandlerOwner,
.focusStoredElement();
removeTabBlockHandlers();
+ // If you click while the window is being closed,
+ // a new dragging curtain might be added and will
+ // remain after detach. Theoretically a resize curtain can also remain
+ // if you manage to click on the resize element
+ hideDraggingCurtain();
+ hideResizingCurtain();
}
private void addTabBlockHandlers() {