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): make disabled input public #30063

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/material/timepicker/timepicker-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,11 @@ export class MatTimepickerInput<D> implements ControlValueAccessor, Validator, O
() => this.disabledInput() || this._accessorDisabled(),
);

/** Whether the input should be disabled through the template. */
protected readonly disabledInput: InputSignalWithTransform<boolean, unknown> = input(false, {
/**
* Whether the input should be disabled through the template.
* @docs-private
*/
readonly disabledInput: InputSignalWithTransform<boolean, unknown> = input(false, {
transform: booleanAttribute,
alias: 'disabled',
});
Expand Down
2 changes: 1 addition & 1 deletion tools/public_api_guard/material/timepicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class MatTimepickerInput<D> implements ControlValueAccessor, Validator, O
protected readonly _ariaControls: Signal<string | null>;
protected readonly _ariaExpanded: Signal<string>;
readonly disabled: Signal<boolean>;
protected readonly disabledInput: InputSignalWithTransform<boolean, unknown>;
readonly disabledInput: InputSignalWithTransform<boolean, unknown>;
focus(): void;
_getLabelId(): string | null;
getOverlayOrigin(): ElementRef<HTMLElement>;
Expand Down
Loading