Skip to content

Commit

Permalink
fix(md-datepicker): respect max date
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanood committed Jul 25, 2016
1 parent db770dc commit e54d610
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/datepicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ export class MdDatePicker {
}

valueChanged(newValue) {
if (this.options.max && newValue > this.options.max) {
this.value = this.options.max;
}
this.log.debug('selectedChanged', this.value);
// this.taskQueue.queueTask(() => {
this.picker.set('select', this.value);
Expand Down

0 comments on commit e54d610

Please sign in to comment.