Skip to content
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
6 changes: 1 addition & 5 deletions src/cdk/observers/observe-content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,7 @@ export class CdkObserveContent implements AfterContentInit, OnDestroy {
get disabled() { return this._disabled; }
set disabled(value: any) {
this._disabled = coerceBooleanProperty(value);
if (this._disabled) {
this._unsubscribe();
} else {
this._subscribe();
}
this._disabled ? this._unsubscribe() : this._subscribe();
}
private _disabled = false;

Expand Down
1 change: 1 addition & 0 deletions src/lib/form-field/form-field.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
read if it comes before the control in the DOM. -->
<label class="mat-form-field-label"
(cdkObserveContent)="updateOutlineGap()"
[cdkObserveContentDisabled]="appearance != 'outline'"
[id]="_labelId"
[attr.for]="_control.id"
[attr.aria-owns]="_control.id"
Expand Down