Results 1 to 3 of 3

Thread: Ext.field.Select change listener

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-855 in a recent build.
  1. #1
    Sencha Premium Member
    Join Date
    May 2008
    Location
    Pasadena, California
    Posts
    172
    Vote Rating
    2
      0  

    Default 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()));
            }
    },

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    11
      0  

    Default

    Thanks for the report. This definitely seems wrong.

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Posts
    3
    Vote Rating
    0
      0  

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •