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 95846d1  fixes an issue where errorBorder remains but the field is 
valid
95846d1 is described below

commit 95846d19136b1230b558782b44c0f1dc39fe6dfa
Author: Carlos Rovira <[email protected]>
AuthorDate: Sun Feb 3 22:31:53 2019 +0100

    fixes an issue where errorBorder remains but the field is valid
---
 .../org/apache/royale/jewel/beads/validators/Validator.as | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as
index 91e74e5..e8b5bab 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as
@@ -285,7 +285,6 @@ package org.apache.royale.jewel.beads.validators
                        if (!errorText)
                                return;
 
-
                        if (_errorTip == null) {
                                _errorTip = new ErrorTipLabel();
 
@@ -373,14 +372,14 @@ package org.apache.royale.jewel.beads.validators
         {
             if (_errorTip) {
                 _host.popUpParent.removeElement(_errorTip);
-
                                _errorTip = null;
-
-                               COMPILE::JS
-                               {
-                                       if 
(hostClassList.contains("errorBorder"))
-                                               
hostClassList.remove("errorBorder");
-                               }
+                       }
+                       COMPILE::JS
+                       {
+                       if (hostClassList && 
hostClassList.contains("errorBorder"))
+                       {
+                               hostClassList.remove("errorBorder");
+                       }
                        }
         }
        }

Reply via email to