Results 1 to 3 of 3

Thread: Ext.field.Slider value initialization bug

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1337 in a recent build.
  1. #1
    Sencha User
    Join Date
    Aug 2010
    Posts
    1
    Vote Rating
    0
      0  

    Default Ext.field.Slider value initialization bug

    The bug can be reproduced by running the following code:

    Code:
    var f = Ext.create('Ext.form.Panel', {
        items: [
            {
                xtype: 'sliderfield',
                label: 'test',
                name: 'test',
                value: 50,
                minValue: 0,
                maxValue: 100
            }
        ]
    });
    console.log('test: ' + f.getValues()['test']);
    Expected result:
    test: 0

    Obtained result:
    test: null

    Workaround: Remove 'value: 50,'

    Is this a bug or am I missing something?

    Cheers
    Alex

  2. #2
    Sencha - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,023
    Vote Rating
    1334
      0  

    Default

    In PR3, the value was not applied to the slider. In our latest code that will be part of the next release, this has been fixed.

    However, looks like the value is still off.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
      0  

    Default

    This leet bug has been fixed for the next release.

    Sencha Inc

    Jamie Avins

    @jamieavins

Posting Permissions

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