Skip to content

Commit

Permalink
docs(material/datepicker): Added context to docs for date picker null…
Browse files Browse the repository at this point in the history
… value #29385 (#29387)

* Added context for why the null value is there

* Fixed formatting

* removed extra *

(cherry picked from commit 39b15dc)
  • Loading branch information
hhaasbroek authored and crisbeto committed Jul 5, 2024
1 parent 47b32b0 commit a083619
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/material/datepicker/datepicker-input-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ export class MatDatepickerInputEvent<D, S = unknown> {
}
}

/** Function that can be used to filter out dates from a calendar. */
/**
* Function that can be used to filter out dates from a calendar.
* Datepicker can sometimes receive a null value as input for the date argument.
* This doesn't represent a "null date" but rather signifies that no date has been selected yet in the calendar.
*/
export type DateFilterFn<D> = (date: D | null) => boolean;

/**
Expand Down

0 comments on commit a083619

Please sign in to comment.