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

Commit 028d218

Browse files
committed
feat(focus): allow to set focus when loaded or listening a scope event
1 parent da159d4 commit 028d218

File tree

3 files changed

+316
-277
lines changed

3 files changed

+316
-277
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)