]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix IE focus fix which has been broken since 7.0.0 (#7965)
authorArtur Signell <artur@vaadin.com>
Sun, 17 Apr 2016 15:58:59 +0000 (18:58 +0300)
committerTeemu Suo-Anttila <teemusa@vaadin.com>
Thu, 28 Apr 2016 15:33:55 +0000 (15:33 +0000)
Change-Id: Ia0aee645ed3b0ba6de33a6a2ce9f8bde9b84f44f

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

index 8bdafb9073aed1993d86cd13fed3752c8aaf6001..479fffc74131c0141e650381c68b9daaaf658776 100644 (file)
@@ -8005,9 +8005,11 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
              * handler is still active. (#10464)
              */
             Element focusedElement = WidgetUtil.getFocusedElement();
-            if (Util.getConnectorForElement(client, getParent(), focusedElement) == this
-                    && focusedElement != null
-                    && focusedElement != scrollBodyPanel.getFocusElement()) {
+            if (focusedElement != null
+                    && focusedElement != scrollBodyPanel.getFocusElement()
+                    && Util.getConnectorForElement(client, getParent(),
+                            focusedElement) == ConnectorMap.get(client)
+                            .getConnector(this)) {
                 /*
                  * Steal focus back to the focus handler if it was moved to some
                  * other part of the table. Avoid stealing focus in other cases.