This repository was archived by the owner on Oct 2, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 306
306
var processed = true ;
307
307
switch ( key ) {
308
308
case Key . Down :
309
- if ( ! ctrl . open && ctrl . multiple ) ctrl . activate ( true ) ; //In case its the search input in 'multiple' mode
309
+ if ( ! ctrl . open && ctrl . multiple ) ctrl . activate ( false , true ) ; //In case its the search input in 'multiple' mode
310
310
else if ( ctrl . activeIndex < ctrl . items . length - 1 ) { ctrl . activeIndex ++ ; }
311
311
break ;
312
312
case Key . Up :
313
- if ( ! ctrl . open && ctrl . multiple ) ctrl . activate ( true ) ; //In case its the search input in 'multiple' mode
313
+ if ( ! ctrl . open && ctrl . multiple ) ctrl . activate ( false , true ) ; //In case its the search input in 'multiple' mode
314
314
else if ( ctrl . activeIndex > 0 ) { ctrl . activeIndex -- ; }
315
315
break ;
316
316
case Key . Tab :
321
321
if ( ctrl . open ) {
322
322
ctrl . select ( ctrl . items [ ctrl . activeIndex ] ) ;
323
323
} else {
324
- ctrl . activate ( true ) ; //In case its the search input in 'multiple' mode
324
+ ctrl . activate ( false , true ) ; //In case its the search input in 'multiple' mode
325
325
}
326
326
break ;
327
327
case Key . Escape :
773
773
} ) ;
774
774
775
775
scope . $watch ( '$select.search' , function ( newValue ) {
776
- if ( newValue && ! $select . open && $select . multiple ) $select . activate ( true ) ;
776
+ if ( newValue && ! $select . open && $select . multiple ) $select . activate ( false , true ) ;
777
777
$select . activeIndex = 0 ;
778
778
$select . refresh ( attrs . refresh ) ;
779
779
} ) ;
You can’t perform that action at this time.
0 commit comments