diff --git a/src/datepickerPopup/popup.js b/src/datepickerPopup/popup.js index b04311b269..8e9fd4074d 100644 --- a/src/datepickerPopup/popup.js +++ b/src/datepickerPopup/popup.js @@ -355,7 +355,7 @@ function($scope, $element, $attrs, $compile, $log, $parse, $window, $document, $ } if (angular.isString(value)) { - return !isNaN(parseDateString(viewValue)); + return !isNaN(parseDateString(value)); } return false;