We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a869b3 commit 5a8f7dfCopy full SHA for 5a8f7df
1 file changed
src/material/timepicker/util.ts
@@ -89,6 +89,8 @@ export function generateOptions<D>(
89
max: D,
90
interval: number,
91
): MatTimepickerOption<D>[] {
92
+ // Avoid generating intervals less than a second, because it can freeze up the browser.
93
+ interval = Math.max(interval, 1);
94
const options: MatTimepickerOption<D>[] = [];
95
let current = adapter.compareTime(min, max) < 1 ? min : max;
96
0 commit comments