Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(material/timepicker): allow scroll strategy to be customized #30479

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

crisbeto
Copy link
Member

Note: This is a cherry-pick of #30473.

Adds an injection token to the timepicker that allows the scroll strategy to be customized, similar to other components.

Fixes #30421.

…ular#30473)

Adds an injection token to the timepicker that allows the scroll strategy to be customized, similar to other components.

Fixes angular#30421.
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Feb 12, 2025
@crisbeto crisbeto requested a review from a team as a code owner February 12, 2025 17:18
@crisbeto crisbeto requested review from mmalerba and andrewseguin and removed request for a team February 12, 2025 17:18
@@ -25,6 +26,9 @@ import { Validator } from '@angular/forms';
// @public
export const MAT_TIMEPICKER_CONFIG: InjectionToken<MatTimepickerConfig>;

// @public
export const MAT_TIMEPICKER_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason to not just put it as part of the MAT_TIMEPICKER_CONFIG?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly consistency with the rest of the components.

@crisbeto crisbeto merged commit e8d6454 into angular:19.1.x Feb 12, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: material/timepicker target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants