[ 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