Skip to content

Commit a083619

Browse files
hhaasbroekcrisbeto
authored andcommitted
docs(material/datepicker): Added context to docs for date picker null value #29385 (#29387)
* Added context for why the null value is there * Fixed formatting * removed extra * (cherry picked from commit 39b15dc)
1 parent 47b32b0 commit a083619

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/material/datepicker/datepicker-input-base.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ export class MatDatepickerInputEvent<D, S = unknown> {
5656
}
5757
}
5858

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

6266
/**

0 commit comments

Comments
 (0)