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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/material/timepicker/timepicker.ts

Lines changed: 1 addition & 1 deletion
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)