File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 381
381
if ( this . search [ 1 ] . length < 2 ) {
382
382
$ . each ( this . selectors , function ( index ) {
383
383
if ( ! found ) {
384
- if ( that . selectors [ index ] . text . toLowerCase ( ) . indexOf ( that . search [ 1 ] [ 0 ] ) === 0 ) {
384
+ if ( $ . trim ( that . selectors [ index ] . text ) . toLowerCase ( ) . indexOf ( that . search [ 1 ] [ 0 ] ) === 0 ) {
385
385
if ( that . search [ 0 ] == that . search [ 1 ] [ 0 ] ) {
386
386
if ( that . search [ 3 ] < index ) {
387
387
focusOption ( index ) ;
396
396
else {
397
397
$ . each ( this . selectors , function ( index ) {
398
398
if ( ! found ) {
399
- if ( that . selectors [ index ] . text . toLowerCase ( ) . indexOf ( that . search [ 1 ] ) === 0 ) {
399
+ if ( $ . trim ( that . selectors [ index ] . text ) . toLowerCase ( ) . indexOf ( that . search [ 1 ] ) === 0 ) {
400
400
if ( that . search [ 0 ] [ 0 ] == that . search [ 1 ] [ 0 ] ) {
401
401
if ( that . search [ 3 ] < index ) {
402
402
focusOption ( index ) ;
412
412
// Iterate through the selectors with the new unrepeated character.
413
413
$ . each ( this . selectors , function ( index ) {
414
414
if ( ! found ) {
415
- if ( that . search [ 1 ] === that . selectors [ index ] . text . substring ( 0 , that . search [ 1 ] . length ) . toLowerCase ( ) ) {
415
+ if ( that . search [ 1 ] === $ . trim ( that . selectors [ index ] . text ) . substring ( 0 , that . search [ 1 ] . length ) . toLowerCase ( ) ) {
416
416
that . search [ 2 ] = index ;
417
417
focusOption ( index ) ;
418
418
}
You can’t perform that action at this time.
0 commit comments