angularjs - Angular Ui Select Programattically Set Selected Value -


i trying update angular ui-select selected value on pressing tab. js fiddle link https://jsfiddle.net/qufapq1b/3/ ,

controller

 function  selectuicontroller ($scope){  $scope.person = {};  $scope.people = []; $scope.onuiselecttab = function(value) { console.log(value) $scope.person.selected ={ name: 'adam', email: 'adam@email.com', age: 12, country: 'united states' }; document.getelementbyid("next").focus(); }  } 

the code working fine , on pressing tab, selected value set. not displayed in dropdown box. focus shifted next input box expected.

on clicking anywhere body, value displayed in dropdown.

question after focus shifted uiselect, how set value displayed in dropdown.


Comments

Popular posts from this blog

javascript - How to bind ViewModel Store to View? -

recursion - Can every recursive algorithm be improved with dynamic programming? -

c - Why does alarm() cause fgets() to stop waiting? -