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

Commit 4c5ed51

Browse files
committed
feat(focus): allow to set focus when loaded or listening a scope event
1 parent 85b560a commit 4c5ed51

File tree

3 files changed

+318
-279
lines changed

3 files changed

+318
-279
lines changed

src/uiSelectController.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,10 @@ uis.controller('uiSelectCtrl',
309309
}
310310
};
311311

312+
ctrl.setFocus = function(){
313+
if (!ctrl.focus) ctrl.focusser[0].focus();
314+
};
315+
312316
ctrl.clear = function($event) {
313317
ctrl.select(undefined);
314318
$event.stopPropagation();

0 commit comments

Comments
 (0)