Results 1 to 6 of 6

Thread: Modern: selectfield bind issue

    You found a bug! We've classified it as EXTJS-19392 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1

    Default Modern: selectfield bind issue

    Hi,
    I'm using the bind property on a selectfield and when the user selects a value the model is not updated correctly.

    Here's the fiddle: https://fiddle.sencha.com/#fiddle/17ut

    To reproduce the issue:
    1) (optional) click the button to see current model data
    2) select a different value from dropdown
    3) no value is shown and if you click the button you get [Object] as current value

    additionally:

    4) select another value from dropdown
    5) value is selected but if you click the button you still get [Object] as current value

    Thanks,
    Marco

  2. #2

    Default

    Hi

    Does anyone know if there is any progress of this issue or a workaround we can adopt. We have just run into this same problem with the bind being given the model data row and and not the 'valueField' from it.

    Seems to be a major flaw in the selectField binding behaviour so surprised no progress or suggestions on how to proceed whilst a fix is being worked on

    Thanks

    Chris

  3. #3

    Default

    Hi Chris,
    I still can't believe nobody has fixed this, anyway this is my workaround:
    https://fiddle.sencha.com/#view/editor&fiddle/1t1e
    I've been using this since apr-2016, it's far from perfect but it works.

    Marco

  4. #4

    Default

    Hi Marco

    Thanks for that. Looks good for a short term fix

    Chris

  5. #5
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    94

    Default

    We have the same issue - when will this be fixed?

  6. #6
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    94

    Default

    Quote Originally Posted by busaware1 View Post
    We have the same issue - when will this be fixed?
    I found I had to change ChrisDSSmith's example slightly for it to work

    Code:
    onSelectChange: function (select, record) {
            var value = null; 
            if (record) {
                value = record.get(select.getValueField()); 
                this.setXvalue(value); 
            }
            
        }

Similar Threads

  1. [DUP] universal app, modern issue with 6.1.1.76
    By x33z in forum Sencha Cmd
    Replies: 2
    Last Post: 1 Apr 2016, 5:12 AM
  2. [FIXED] ExtJS 6.0.1.250 modern selectfield picker selection change bug
    By TjorvenB in forum Ext JS 6.x Bugs
    Replies: 8
    Last Post: 17 Mar 2016, 8:01 AM
  3. [CLOSED] [MODERN] selectfield won't bind properly to numeric values
    By jorgemanrubia in forum Ext JS 6.x Bugs
    Replies: 4
    Last Post: 16 Feb 2016, 2:38 AM
  4. Performance issue with extjs 6.0.1 modern app
    By namratag in forum Ext JS 6.x Q&A
    Replies: 2
    Last Post: 4 Feb 2016, 1:54 AM

Posting Permissions

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