summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAnthony Guerreiro <anthony@vaadin.com>2014-07-02 11:58:34 +0300
committerVaadin Code Review <review@vaadin.com>2014-07-25 10:49:27 +0000
commitf743e042f03f2c72d2f71507e475e3d26109024a (patch)
tree8df88000cf176698b9e351b0aeb23d1a95fe2f35 /client
parentbe2a71110a75bc83a7281c11b60285079e8cbffa (diff)
downloadvaadin-framework-f743e042f03f2c72d2f71507e475e3d26109024a.tar.gz
vaadin-framework-f743e042f03f2c72d2f71507e475e3d26109024a.zip
Fix NativeButton clickEvent coordinates in IE11 (#14022)
Two clicks were being triggered for IE11, the first with coordinates (0,0) and the second with the correct coordinates. Change-Id: I6f0feb520710b254eac6542f082a5012de2c5f85
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ui/VNativeButton.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ui/VNativeButton.java b/client/src/com/vaadin/client/ui/VNativeButton.java
index 93d8d958d6..8e0dd2bce1 100644
--- a/client/src/com/vaadin/client/ui/VNativeButton.java
+++ b/client/src/com/vaadin/client/ui/VNativeButton.java
@@ -104,7 +104,9 @@ public class VNativeButton extends Button implements ClickHandler {
}
clickPending = false;
} else if (event.getTypeInt() == Event.ONFOCUS) {
- if (BrowserInfo.get().isIE() && clickPending) {
+ if (BrowserInfo.get().isIE()
+ && BrowserInfo.get().getBrowserMajorVersion() < 11
+ && clickPending) {
/*
* The focus event will mess up IE and IE will not trigger the
* mouse up event (which in turn triggers the click event) until