Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Commit

Permalink
fix(ngModel): don't set the view value without user interaction, set …
Browse files Browse the repository at this point in the history
…the model value to not mark the field as dirty

close #24
  • Loading branch information
Philipp Burgmer committed Feb 2, 2016
1 parent 5a3932c commit 405df98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/w11k-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ angular.module('w11k.select').directive('w11kSelect', [
);

function applyConfig() {
checkSelection();
optionsAlreadyRead.then(function () {
setViewValue();
checkSelection();
updateNgModel();
});

if (!configRead) {
Expand Down

0 comments on commit 405df98

Please sign in to comment.