incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manik Magar <>
Subject DateField selectedDate and text issue
Date Wed, 04 Apr 2012 23:52:09 GMT
Hi All,

While working with DateField, I observed below behavior, is it a bug? If
yes, should be it be logged to Apache JIRA or Adobe bug database and Can I
put a fix for it in SDK?

Assume a Datefield added on some application -

<s:DateField id="dt"/>

on some button click i have below code -

dt.selectedDate = new Date();;   ---- This alerts todays date;   ---- alerts todays date

dt.text = "";;   ---- alerts "";   ---- This still alerts todays date.

Now, if you open a datefield in front end to select a date, selectedDate
gets reset to NULL because text is set to "".
text will reset to "" if selectedDate is set to null, then why not

Shouldn't this happen as soon as you set text = ""?

--  MM

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message