]> source.dussan.org Git - vaadin-framework.git/commitdiff
[merge from 6.7] Fixed #6753: IE 6 to 8 propagate button clicks to layout/window
authorAutomerge <automerge@vaadin.com>
Mon, 5 Mar 2012 10:05:36 +0000 (10:05 +0000)
committerAutomerge <automerge@vaadin.com>
Mon, 5 Mar 2012 10:05:36 +0000 (10:05 +0000)
svn changeset:23176/svn branch:6.8

src/com/vaadin/terminal/gwt/client/ui/VButton.java

index 03de99ada6ed2d42344f9ea7c6d4aff91a9682c2..9188f7406afe0bede505661280dcad7d1ba1bf07 100644 (file)
@@ -250,6 +250,12 @@ public class VButton extends FocusWidget implements Paintable, ClickHandler,
                 if (BrowserInfo.get().isIE() || BrowserInfo.get().isOpera()) {
                     removeStyleName(CLASSNAME_PRESSED);
                 }
+                // Explicitly prevent IE 6 to 8 from propagating mouseup events
+                // upward (fixes #6753)
+                if (BrowserInfo.get().isIE()
+                        && BrowserInfo.get().getIEVersion() < 9) {
+                    event.stopPropagation();
+                }
             }
             break;
         case Event.ONMOUSEMOVE: