]> source.dussan.org Git - vaadin-framework.git/commitdiff
Ensure resize and dragging curtain cleanup when a window is closed 7.7.30
authorTatu Lund <tatu@vaadin.com>
Thu, 16 Dec 2021 17:04:24 +0000 (19:04 +0200)
committerGitHub <noreply@github.com>
Thu, 16 Dec 2021 17:04:24 +0000 (19:04 +0200)
(#12499)

client/src/main/java/com/vaadin/client/ui/VWindow.java

index 9bf586231f791317d0a2d778c8e52ccf50990653..6ecfbf71485c71069997b503bd8e22b475d95447 100644 (file)
@@ -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() {