You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2020/07/06 13:00:18 UTC

[royale-asjs] branch develop updated: Only visit element children

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 <ha...@in-tools.com>
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;
 			}
 		}
 		/**