From e0085d56c07aea5f857a3d4496e4876e51838efd Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Sun, 2 Aug 2015 10:19:19 -0700 Subject: [PATCH] fix(datepicker): change to `dateDisabled` BREAKING CHANGE: Change validation key to `dateDisabled` to align better with Angular's convention --- src/datepicker/datepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))); } };