Results 1 to 6 of 6

Thread: tabIndex issues with RadioGroup

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Sep 2013
    Posts
    4

    Default tabIndex issues with RadioGroup

    Hi there,

    I'm encountering some issues with tabIndexing of one my form.
    It contains various form fields (Number, Text, Combos and ... RadioGroups )
    And I've added for each of these tab indexes.

    Everything works fine except for the RadioGroups which are skipped on Tab navigation.

    Issue is tabIndex is never set to the DOM element for my radio groups.
    With no tabIndex property set in RadioGroup declaration, the matching DOM element has a -1 tabIndex which seems logical but when I set the tabIndex in RadioGroup declaration, element has a tabIndex equal to zero ( and one of the child item is set to tabIndex = 0 too )

    Not sure I'm using tabIndex correctly with RadioGroups ... ( and I've searched a lot )
    Any help or example would be greatly appreciated !

    Many thanks,

    Here is an example of one of my RadioGroup :

    Code:
                    
    var sf_patellar_instability = Ext.create('Ext.form.RadioGroup', {            
                fieldLabel: "Opr de son instabilit patellaire",
                labelSeparator : '',
                disabled : false,
                tabIndex    : 6,
                width: 400,
                labelWidth : 200,
                itemId : 'sf_patellar_instability',
                id : 'sf_patellar_instability',
                name : 'sf_patellar_instability',
                renderTo: 'sf_patellar_instability',
                defaults: {
                    flex: 1
                },
                layout: 'hbox',
                items: [
                    {
                     name : 'radio_patellar_instability', 
                     id : 'radio_patellar_instability1', 
                     boxLabel : 'Oui', 
                     inputValue : 1
                    },
                    {
                     name : 'radio_patellar_instability', 
                     id : 'radio_patellar_instability0' , 
                     boxLabel : 'Non', 
                     inputValue : 0
                    }
                ],
                listeners : {                
                    change : function(obj,newVal,oldVal,opts) {
                        if(typeof sf_patellar_instability_ChangeOverride == 'function') { 
                            sf_patellar_instability_ChangeOverride(); 
                        }                        
                    }                
                }
            });

  2. #2
    Sencha User
    Join Date
    Sep 2013
    Posts
    4

    Default Made a Fiddle for this


  3. #3
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for the report. This works if you remove the tabIndex configs.
    https://fiddle.sencha.com/#fiddle/11m7

    Focus changed in 5.x, and is now managed using the focusable property.
    http://docs.sencha.com/extjs/5.0/wha...501.html#Focus
    http://docs.sencha.com/extjs/5.0/wha...ard_Navigation

  4. #4
    Sencha User
    Join Date
    Sep 2013
    Posts
    4

    Default

    Thanks for your reply

  5. #5
    Sencha User
    Join Date
    Jul 2009
    Location
    Colorado Springs, CO
    Posts
    52

    Default

    Quote Originally Posted by Gary Schlosberg View Post
    Thanks for the report. This works if you remove the tabIndex configs.
    https://fiddle.sencha.com/#fiddle/11m7

    Focus changed in 5.x, and is now managed using the focusable property.
    http://docs.sencha.com/extjs/5.0/wha...501.html#Focus
    http://docs.sencha.com/extjs/5.0/wha...ard_Navigation


    I know this is an old post but I have just run into this same issue. Tab order seems to not work correctly with RadioGroups. When you tab to the first radio and hit tab again it continues on to the next text field shouldnt it tab through each radio opition? See the fiddle above.

  6. #6
    Sencha Premium Member tjstuart's Avatar
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    457

    Default

    Use the arrow keys to navigate the radios once the group is focused. This is as per ARIA.

    https://www.w3.org/TR/2016/WD-wai-ar...dio/radio.html

Similar Threads

  1. Replies: 5
    Last Post: 5 Jun 2015, 4:45 AM
  2. Replies: 2
    Last Post: 10 Apr 2015, 1:08 AM
  3. Can I get id by tabIndex?
    By moegal in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 12 Jan 2009, 5:11 AM
  4. RadioGroup Issues
    By Adam.Molnar in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 6 Aug 2008, 9:13 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
  •