Skip to content
This repository has been archived by the owner on Apr 30, 2018. It is now read-only.

Commit

Permalink
Fixes #35
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed Jul 8, 2015
1 parent 957bf72 commit d4c5342
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/types/multiCheckbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ export default ngModule => {
checkValidity(true);
}

if (opts.expressionProperties && opts.expressionProperties.required) {
$scope.$watch($scope.options.expressionProperties.required, function(newValue) {
if (opts.expressionProperties && opts.expressionProperties['templateOptions.required']) {
$scope.$watch(function() {
return $scope.to.required;
}, function(newValue) {
checkValidity(newValue);
});
}
Expand All @@ -83,7 +85,7 @@ export default ngModule => {
return;
}
checkValidity(true);
unwatchFormControl;
unwatchFormControl();
});
}
}
Expand Down

0 comments on commit d4c5342

Please sign in to comment.