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

Commit

Permalink
fix(datepicker): change to dateDisabled
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Change validation key to `dateDisabled` to align better with Angular's convention

Closes #2773
Closes #4080
  • Loading branch information
wesleycho committed Aug 2, 2015
1 parent c7d3a66 commit 5245cca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datepicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}
};

Expand Down

0 comments on commit 5245cca

Please sign in to comment.