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

carlosrovira 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 bf8a9ff  SetFocus: fix _strand. Warning this bead is still not working 
as expected
bf8a9ff is described below

commit bf8a9ffb84f4a306f37306e12f87743a4aeb77e4
Author: Carlos Rovira <[email protected]>
AuthorDate: Mon Mar 23 23:49:22 2020 +0100

    SetFocus: fix _strand. Warning this bead is still not working as expected
---
 .../Basic/src/main/royale/org/apache/royale/html/beads/SetFocus.as    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/SetFocus.as
 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/SetFocus.as
index d104a26..f412469 100644
--- 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/SetFocus.as
+++ 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/SetFocus.as
@@ -48,7 +48,6 @@ package org.apache.royale.html.beads
                }
 
                private var _strand:IStrand;
-               
                /**
                 *  @copy org.apache.royale.core.IBead#strand
                 *  
@@ -71,7 +70,8 @@ package org.apache.royale.html.beads
                {
                        COMPILE::JS
                        {
-                       UIBase(_strand).element.focus();
+                       if(_strand)
+                               UIBase(_strand).element.focus();
                        }
                }
 

Reply via email to