I do not know why the change, but for a fix, you could use a labelFunction
to return an empty string if the item is null.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of Dave Glasser
Sent: Tuesday, December 15, 2009 9:47 AM
To: [email protected]
Subject: [SPAM] [flexcoders] Can't select null item in ComboBox

 

  

I have some code that was originally written under Flex 2, where a
ComboBox's data provider is an array of objects, with the first element set
to null. When this code is built under Flex 2, I can select the first item
in the combo's dropdown list, and selectedItem returns null, which is what I
expect and want. When the code is built under Flex 3, I can't select the
null item. It's shown in the list, but mousing over it doesn't highlight it,
and clicking it doesn't close the dropdown.

Is this a bug, or a new "feature" in Flex 3?



Reply via email to