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

Commit 1009cb1

Browse files
committed
Focus for multiselect mode
1 parent 4c5ed51 commit 1009cb1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/uiSelectController.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ uis.controller('uiSelectCtrl',
310310
};
311311

312312
ctrl.setFocus = function(){
313-
if (!ctrl.focus) ctrl.focusser[0].focus();
313+
if (!ctrl.focus && !ctrl.multiple) ctrl.focusser[0].focus();
314+
if (!ctrl.focus && ctrl.multiple) _searchInput[0].focus();
314315
};
315316

316317
ctrl.clear = function($event) {

0 commit comments

Comments
 (0)