diff --git a/dist/ng-quick-date.js b/dist/ng-quick-date.js index 7d8d24d..500f20b 100644 --- a/dist/ng-quick-date.js +++ b/dist/ng-quick-date.js @@ -255,6 +255,10 @@ closeCalendar = true; } changed = (!ngModelCtrl.$viewValue && date) || (ngModelCtrl.$viewValue && !date) || ((date && ngModelCtrl.$viewValue) && (date.getTime() !== ngModelCtrl.$viewValue.getTime())); + + var tmpDate = $filter('date')(date, scope.dateFormat); + date = parseDateString('' + tmpDate + ' ' + scope.inputTime); + if (typeof scope.dateFilter === 'function' && !scope.dateFilter(date)) { return false; } @@ -353,4 +357,4 @@ }; }); -}).call(this); +}).call(this); \ No newline at end of file