Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ export class NgxMatDatetimePickerInputV2<D>

/** Function that can be used to filter out dates within the datepicker. */
@Input()
get dateFilter(): (date: D) => boolean {
get dateFilter(): (date: D | null) => boolean {
return this._dateFilter();
}
set dateFilter(value: (date: D) => boolean) {
set dateFilter(value: (date: D | null) => boolean) {
const wasMatchingValue = this._matchesFilter(this.value);
this._dateFilter.set(value);
if (this._matchesFilter(this.value) !== wasMatchingValue) {
Expand Down