Skip to content

Commit

Permalink
Closes #19 - Support model value being set before options are loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
machineboy2045 committed Dec 16, 2014
1 parent 172f944 commit 4c973dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ angular.module('selectize', []).value('selectizeConfig', {}).directive("selectiz
});

if(needOptionRefresh)
selectize.refreshOptions(false);
updateSelectizeValue(scope.ngModel); //allow the model value to be set before the options are loaded
}

function updateSelectizeValue(value, prev){
Expand Down

0 comments on commit 4c973dd

Please sign in to comment.