Results 1 to 4 of 4

Thread: RadioGroup behavior changed between 6.0.x and 6.2.x (classic)

  1. #1
    Sencha Premium Member
    Join Date
    Aug 2012
    Posts
    30
    Answers
    1

    Default RadioGroup behavior changed between 6.0.x and 6.2.x (classic)

    It seems like the behavior of BasicForm#getValues() has changed in ExtJS 6.2.x with regards to RadioGroup fields.

    In previous versions, you used to be able to call getValues() on the form and retrieve the current value of the radio group, but now it always returns the same value which happens to be the value of the first radio input in the group.

    I've been tracing through the code but haven't quite figured out where the difference is.

    https://fiddle.sencha.com/#view/editor&fiddle/1nb2

    In the fiddle, you can see the different in console output between 6.2.1 and 6.0.2.

    Thanks

  2. #2
    chramer's Avatar
    Join Date
    Feb 2011
    Location
    Chisinau, Moldova
    Posts
    316
    Answers
    64

    Default

    It might be a bug.. If you put a "debugger;" statement at the beginning of the "change" listener function, you will notice that the "change" event in 6.2.x is fired before the value of the radio is switched, whereas in 6.0.x - after the value is switched.

  3. #3
    Sencha Premium Member
    Join Date
    Aug 2012
    Posts
    30
    Answers
    1

    Default

    Yep, you're right. I noticed that the value eventually gets in the form, but after the change listener executes where I'm trying to generalize some behavior across all fields in a form. I haven't quite tracked down where the issue was introduced so I can patch it for now, but still looking.

  4. #4
    Sencha Premium Member
    Join Date
    Aug 2012
    Posts
    30
    Answers
    1

    Default

    Also, I should note that I found the 'simpleValue' config that was introduced in 6.2.0, but setting it to 'true' doesn't seem to have an effect on this behavior.

Similar Threads

  1. Multiselector behavior changed from 5.0 to 5.1
    By The0s in forum Ext 5: Bugs
    Replies: 4
    Last Post: 12 Jun 2015, 2:58 PM
  2. Added Classic Theme, changed button color, now Screen is white
    By blomasky in forum Sencha Architect 3.x: Bugs
    Replies: 1
    Last Post: 14 Oct 2013, 7:26 AM
  3. ComboBox Behavior Changed from Ext 2.x.x to 3.x.x
    By Robert Jacobsen in forum Ext 3.x: Bugs
    Replies: 0
    Last Post: 24 Sep 2010, 1:31 PM

Posting Permissions

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