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

Commit

Permalink
bugfix(datepicker): min/max date attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
alenaksu committed Mar 8, 2016
1 parent 794b621 commit 1d0aedd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/mdPickers.js
Expand Up @@ -37,8 +37,8 @@ function DatePickerCtrl($scope, $mdDialog, $mdMedia, $timeout, currentDate, opti
var self = this;

this.date = moment(currentDate);
this.minDate = moment(options.minDate).isValid() ? moment(options.minDate) : null;
this.maxDate = moment(options.maxDate).isValid() ? moment(options.maxDate) : null;
this.minDate = options.minDate && moment(options.minDate).isValid() ? moment(options.minDate) : null;
this.maxDate = options.maxDate && moment(options.maxDate).isValid() ? moment(options.maxDate) : null;
this.dateFilter = angular.isFunction(options.dateFilter) ? options.dateFilter : null;
this.selectingYear = false;

Expand Down

0 comments on commit 1d0aedd

Please sign in to comment.