diff --git a/src/datepicker/datepicker.js b/src/datepicker/datepicker.js index 1df643e3f7..ec299d545b 100644 --- a/src/datepicker/datepicker.js +++ b/src/datepicker/datepicker.js @@ -94,7 +94,7 @@ angular.module('ui.bootstrap.datepicker', ['ui.bootstrap.dateparser', 'ui.bootst this._refreshView(); var date = ngModelCtrl.$viewValue ? new Date(ngModelCtrl.$viewValue) : null; - ngModelCtrl.$setValidity('date-disabled', !date || (this.element && !this.isDisabled(date))); + ngModelCtrl.$setValidity('dateDisabled', !date || (this.element && !this.isDisabled(date))); } };