Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5519610444 for ; Sun, 28 Apr 2013 00:48:17 +0000 (UTC) Received: (qmail 8266 invoked by uid 500); 28 Apr 2013 00:48:16 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 8240 invoked by uid 500); 28 Apr 2013 00:48:16 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 8228 invoked by uid 99); 28 Apr 2013 00:48:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Apr 2013 00:48:16 +0000 Date: Sun, 28 Apr 2013 00:48:16 +0000 (UTC) From: "Justin Mclean (JIRA)" To: dev@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (FLEX-22502) DateField component, when Editable, and using a DateValidator, cause 3 "invalid" events to fire whenever focus is lost on the DateField MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-22502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Justin Mclean resolved FLEX-22502. ---------------------------------- Resolution: Fixed Change code to dispatch change event so better to listen for this. Value commit event still occurs 3 times. Checked into develop branch. > DateField component, when Editable, and using a DateValidator, cause 3 "invalid" events to fire whenever focus is lost on the DateField > --------------------------------------------------------------------------------------------------------------------------------------- > > Key: FLEX-22502 > URL: https://issues.apache.org/jira/browse/FLEX-22502 > Project: Apache Flex > Issue Type: Bug > Components: mx: DateField > Affects Versions: Adobe Flex SDK 3.4 (Release) > Environment: Affected OS(s): All OS Platforms > Affected OS(s): All OS Platforms > Browser: Firefox 3.x > Language Found: English > Reporter: Adobe JIRA > > Steps to reproduce: > 1. Create DateField component > 2. Set "editable" property of DateField component to "true" > 3. Add a DateValidator for the "text" property of the DateField component, triggering on the valueCommit of the DateField. > > Actual Results: > The "invalid" event of the DateValidator is fired 3 times whenever the DateField loses focus when an invalid date has been entered. > > Expected Results: > The "invalid" event only fires once when losing focus on the DateField. > > > Workaround (if any): > N/A > > Research: > This seems to be caused by the fact that the DateField component is actually a descendant of ComboBase, and implements a TextInput. When focus is lost, the focusOut event occurs at each level (DateField, ComboBase, and TextInput), which in turn ends up firing a valueCommit event for each of those levels. Therefore a DateValidator is triggered 3 times for an invalid date. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira