Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Fix bug when using an empty value and no defining placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmcode committed Jul 21, 2016
1 parent 26a77ff commit a4835ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions source/ngComboDatePicker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* ngComboDatePicker v1.2.2
* ngComboDatePicker v1.2.3
* http://github.com/jfmdev/ngComboDatePicker
* «Copyright 2015 Jose F. Maldonado»
* License: LGPLv3 (http://www.gnu.org/licenses/lgpl-3.0.html)
Expand Down Expand Up @@ -197,9 +197,11 @@ angular.module("ngComboDatePicker", [])
$scope.month = '';
$scope.year = '';

placeHolders[0].disabled = false;
placeHolders[1].disabled = false;
placeHolders[2].disabled = false;
if(placeHolders) {
placeHolders[0].disabled = false;
placeHolders[1].disabled = false;
placeHolders[2].disabled = false;
}
}

// Hide or show days and months according to the min and max dates.
Expand Down
4 changes: 2 additions & 2 deletions source/ngComboDatePicker.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a4835ec

Please sign in to comment.