Skip to content

Commit 3a97011

Browse files
authored
fix(material/timepicker): wrong default scroll strategy (#30593)
#30561 accidentally switched the default scroll strategy for the timepicker to be `close` instead of `reposition`. It was unintentional so these changes switch it back to `reposition`.
1 parent 11599f8 commit 3a97011

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/material/timepicker/timepicker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const MAT_TIMEPICKER_SCROLL_STRATEGY = new InjectionToken<() => ScrollStr
7070
providedIn: 'root',
7171
factory: () => {
7272
const overlay = inject(Overlay);
73-
return () => overlay.scrollStrategies.close();
73+
return () => overlay.scrollStrategies.reposition();
7474
},
7575
},
7676
);

0 commit comments

Comments
 (0)