Skip to content

Commit d6b3775

Browse files
authored
fix(material/timepicker): make disabled input public (angular#30063)
Initially the `disabled` input was marked as `protected`, because the actual disabled state is a `computed`. This seems to break with some compiler options so these changes switches it to be public. Fixes angular#30061.
1 parent 34aa01d commit d6b3775

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/material/timepicker/timepicker-input.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,11 @@ export class MatTimepickerInput<D> implements ControlValueAccessor, Validator, O
144144
() => this.disabledInput() || this._accessorDisabled(),
145145
);
146146

147-
/** Whether the input should be disabled through the template. */
148-
protected readonly disabledInput: InputSignalWithTransform<boolean, unknown> = input(false, {
147+
/**
148+
* Whether the input should be disabled through the template.
149+
* @docs-private
150+
*/
151+
readonly disabledInput: InputSignalWithTransform<boolean, unknown> = input(false, {
149152
transform: booleanAttribute,
150153
alias: 'disabled',
151154
});

tools/public_api_guard/material/timepicker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class MatTimepickerInput<D> implements ControlValueAccessor, Validator, O
7171
protected readonly _ariaControls: Signal<string | null>;
7272
protected readonly _ariaExpanded: Signal<string>;
7373
readonly disabled: Signal<boolean>;
74-
protected readonly disabledInput: InputSignalWithTransform<boolean, unknown>;
74+
readonly disabledInput: InputSignalWithTransform<boolean, unknown>;
7575
focus(): void;
7676
_getLabelId(): string | null;
7777
getOverlayOrigin(): ElementRef<HTMLElement>;

0 commit comments

Comments
 (0)