Skip to content

Commit 289a0e0

Browse files
committed
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`. (cherry picked from commit 3a97011)
1 parent 9061b7b commit 289a0e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)