Skip to content

Commit ae111ab

Browse files
committed
handle date clearing for pfDatepicker
1 parent cbd66f1 commit ae111ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/form/datepicker/datepicker.directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ angular.module('patternfly.form').directive('pfDatepicker', function () {
5656
element.datepicker('update', $scope.date);
5757

5858
//Change happened on the date picker side. Update the underlying date model
59-
element.datepicker($scope.date).on('changeDate', function (elem) {
59+
element.datepicker($scope.date).on('changeDate clearDate', function (elem) {
6060
$scope.$apply(function () {
6161
$scope.date = elem.date;
6262
});

0 commit comments

Comments
 (0)