-
Notifications
You must be signed in to change notification settings - Fork 6.8k
refactor: move common date input logic into base class #18213
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
Conversation
Moves the common logic for a date input into a base class and implements it for the range inputs.
@@ -97,59 +69,17 @@ export class MatDatepickerInputEvent<D> { | |||
}, | |||
exportAs: 'matDatepickerInput', | |||
}) | |||
export class MatDatepickerInput<D> implements ControlValueAccessor, OnDestroy, Validator { | |||
export class MatDatepickerInput<D> extends MatDatepickerInputBase<D> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need an inputs
section in the decorator spec? I noticed that the API goldens show some inputs being removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The inputs
got transferred onto the base class, but since it's not exported through the public API it won't show up in the golden. I think the golden only generates code for the class' own fields.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I assumed tests would be broken if those inputs actually got removed, but just wanted to double check.
Moves the common logic for a date input into a base class and implements it for the range inputs.
Moves the common logic for a date input into a base class and implements it for the range inputs.
Moves the common logic for a date input into a base class and implements it for the range inputs.
Moves the common logic for a date input into a base class and implements it for the range inputs.
Moves the common logic for a date input into a base class and implements it for the range inputs.
Moves the common logic for a date input into a base class and implements it for the range inputs.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Moves the common logic for a date input into a base class and implements it for the range inputs.