File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 487487 this . results = results = this . container . find ( resultsSelector ) ;
488488 this . search = search = this . container . find ( "input.select2-input" ) ;
489489
490+ search . attr ( "tabIndex" , this . opts . element . attr ( "tabIndex" ) ) ;
491+
490492 this . resultsPage = 0 ;
491493 this . context = null ;
492494
12921294 } ) ) ;
12931295 this . search . bind ( "blur" , this . bind ( function ( ) {
12941296 if ( ! this . opened ( ) ) this . container . removeClass ( "select2-container-active" ) ;
1295- window . setTimeout ( this . bind ( function ( ) { this . selection . removeAttr ( "tabIndex" ) ; } ) , 10 ) ;
1297+ window . setTimeout ( this . bind ( function ( ) { this . selection . attr ( "tabIndex" , this . opts . element . attr ( "tabIndex" ) ) ; } ) , 10 ) ;
12961298 } ) ) ;
12971299
12981300 selection . bind ( "click" , this . bind ( function ( e ) {
13191321
13201322 selection . bind ( "blur" , this . bind ( function ( ) {
13211323 this . container . removeClass ( "select2-container-active" ) ;
1322- window . setTimeout ( this . bind ( function ( ) { this . search . removeAttr ( "tabIndex" ) ; } ) , 10 ) ;
1324+ window . setTimeout ( this . bind ( function ( ) { this . search . attr ( "tabIndex" , this . opts . element . attr ( "tabIndex" ) ) ; } ) , 10 ) ;
13231325 } ) ) ;
13241326
13251327 selection . bind ( "keydown" , this . bind ( function ( e ) {
You can’t perform that action at this time.
0 commit comments