This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 3992713  Only visit element children
3992713 is described below

commit 39927138b2bdbb1cb4a9c01c0989f762f1452ad5
Author: Harbs <[email protected]>
AuthorDate: Mon Jul 6 16:00:02 2020 +0300

    Only visit element children
---
 .../main/royale/org/apache/royale/html/beads/DisableChildrenBead.as   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/DisableChildrenBead.as
 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/DisableChildrenBead.as
index f5dd452..3018f68 100644
--- 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/DisableChildrenBead.as
+++ 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/DisableChildrenBead.as
@@ -137,10 +137,10 @@ package org.apache.royale.html.beads
                {
                        elem.style["pointerEvents"] = _disabled ? "none" : "";
                        _disabled ? elem.setAttribute("tabindex", "-1") : 
elem.removeAttribute("tabindex");
-                       elem = elem.firstChild as HTMLElement;
+                       elem = elem.firstElementChild as HTMLElement;
                        while (elem) {
                                setDecendants(elem);
-                               elem = elem.nextSibling as HTMLElement;
+                               elem = elem.nextElementSibling as HTMLElement;
                        }
                }
                /**

Reply via email to