From f743e042f03f2c72d2f71507e475e3d26109024a Mon Sep 17 00:00:00 2001 From: Anthony Guerreiro Date: Wed, 2 Jul 2014 11:58:34 +0300 Subject: 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 --- client/src/com/vaadin/client/ui/VNativeButton.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client') 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 -- cgit v1.2.3