-
12 Oct 2011 1:24 PM #1
Ext.field.Select change listener
Ext.field.Select change listener
Hello,
I am noticing that the value provided in the change listener for a select field is the display field value instead of the value field. Tracing this back to onListSelect setValue sets the display field value. same for the onPickerChange. It seems this should (and was in 1.1) the value field.
perhaps the fireEvent between onListSelect and the change event should be calling getValue()?
Code:onListSelect: function(item, record) { if (record) { this.record = record; this.setValue(record.get(this.getDisplayField())); } },
-
12 Oct 2011 1:25 PM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Haarlem, Netherlands
- Posts
- 1,235
- Vote Rating
- 4
Thanks for the report. This definitely seems wrong.
-
3 Nov 2011 2:45 AM #3
Is there a work around for this? i have the same issue. I see it was fixed, but the fix isn't released?
Edit: nether mind i when i am just calling the .getValue() of the Ext.field.Select instead of trusting what the value the change event returns
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-855
in
2.0.


Reply With Quote
