Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 40cd450

Browse files
committed
Fix: dropdown doesn't appear when pressing key down (just the word "true")
1 parent f244ee4 commit 40cd450

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/select.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,11 @@
308308
var processed = true;
309309
switch (key) {
310310
case Key.Down:
311-
if (!ctrl.open && ctrl.multiple) ctrl.activate(true); //In case its the search input in 'multiple' mode
311+
if (!ctrl.open && ctrl.multiple) ctrl.activate(false, true); //In case its the search input in 'multiple' mode
312312
else if (ctrl.activeIndex < ctrl.items.length - 1) { ctrl.activeIndex++; }
313313
break;
314314
case Key.Up:
315-
if (!ctrl.open && ctrl.multiple) ctrl.activate(true); //In case its the search input in 'multiple' mode
315+
if (!ctrl.open && ctrl.multiple) ctrl.activate(false, true); //In case its the search input in 'multiple' mode
316316
else if (ctrl.activeIndex > 0) { ctrl.activeIndex--; }
317317
break;
318318
case Key.Tab:
@@ -323,7 +323,7 @@
323323
if(ctrl.open){
324324
ctrl.select(ctrl.items[ctrl.activeIndex]);
325325
} else {
326-
ctrl.activate(true); //In case its the search input in 'multiple' mode
326+
ctrl.activate(false, true); //In case its the search input in 'multiple' mode
327327
}
328328
break;
329329
case Key.Escape:
@@ -777,7 +777,7 @@
777777
$compile(element, transcludeFn)(scope); //Passing current transcludeFn to be able to append elements correctly from uisTranscludeAppend
778778

779779
scope.$watch('$select.search', function(newValue) {
780-
if(newValue && !$select.open && $select.multiple) $select.activate(true);
780+
if(newValue && !$select.open && $select.multiple) $select.activate(false, true);
781781
$select.activeIndex = 0;
782782
$select.refresh(attrs.refresh);
783783
});

0 commit comments

Comments
 (0)