This is an automated email from the ASF dual-hosted git repository. piotrz 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 8a4bfa9 Jewel Validator: Handle scenario where there is no error tip but we still would like to know whether error occurs 8a4bfa9 is described below commit 8a4bfa9853f6fb9093571b560d36a962b51bfdb4 Author: Piotr Zarzycki <piotrzarzyck...@gmail.com> AuthorDate: Tue Sep 21 12:26:11 2021 +0200 Jewel Validator: Handle scenario where there is no error tip but we still would like to know whether error occurs --- .../royale/jewel/beads/validators/Validator.as | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 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 adcf9eb..bf311c5 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 @@ -228,8 +228,24 @@ package org.apache.royale.jewel.beads.validators * @playerversion AIR 2.6 * @productversion Royale 0.9.4 */ - public function get isError():Boolean { - return (_errorTip != null); + public function get isError():Boolean + { + if (!noErrorTip) + { + return (_errorTip != null); + } + else + { + COMPILE::JS + { + return hostClassList.contains("errorBorder"); + } + + COMPILE::SWF + { + return false; + } + } } /**