Skip to content

Commit

Permalink
Issue#59 resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshwarpatlolla committed Oct 8, 2015
1 parent 8eae89a commit c5fa807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ionic-datepicker.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
scope.date_selection.selectedDate = scope.ipDate;

scope.dateSelected = function (date) {
if(!date) return;
if (!date || Object.keys(date).length === 0) return;
scope.selctedDateString = date.dateString;
scope.selctedDateStringCopy = angular.copy(scope.selctedDateString);
scope.date_selection.selected = true;
Expand Down

0 comments on commit c5fa807

Please sign in to comment.