You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2019. It is now read-only.
We run into issues with the Clear button in the date picker popup, which cannot clear the date. So I did some digging in the datepicker popup.js code, and found a bug in the following code, where the null or undefined value (for dt) is not taken care of, causing the $scope.date variable to remain (therefore Clear button does not work for me):
// Inner change
$scope.dateSelection = function(dt) {
if (angular.isDefined(dt)) {
$scope.date = dt; // what if dt is null or undefined here? $scope.date is not reset then!
}
var date = $scope.date ? dateParser.filter($scope.date, dateFormat) : null; // Setting to NULL is necessary for form validators to function
$element.val(date);
ngModel.$setViewValue(date);
if (closeOnDateSelection) {
$scope.isOpen = false;
$element[0].focus();
}
};