If you are trying to achieve this from a controller or directive (this method works independently and its completely angular way to do it) -
say ui-select wrapped in div -
<div id="ui-select-wrapper">
<ui-select>
...
</ui-select>
</div>
Controller Method setFocus -
var uiSelectWrapper = document.getElementById('ui-select-wrapper');
var focusser = uiSelectWrapper.querySelector('.ui-select-focusser');
var focusser = angular.element(uiSelectWrapper.querySelector('.ui-select-focusser'));
focusser.focus();
source
share