Skip to content

Commit 983745d

Browse files
committed
fix(material-experimental/form-field): add setLabelRequired adapter
1 parent a4171e0 commit 983745d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/material-experimental/mdc-form-field/form-field.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,11 @@ export class MatFormField implements AfterViewInit, OnDestroy, AfterContentCheck
243243
// have the ability to control the floating label state (i.e. `shouldLabelFloat`), and we
244244
// want to update the notch whenever the `_shouldLabelFloat()` value changes.
245245
getLabelWidth: () => 0,
246+
247+
// TODO: MDC now supports setting the required asterisk marker directly on
248+
// the label component. This adapter method may be implemented and
249+
// mat-mdc-form-field-required-marker removed.
250+
setLabelRequired: () => {},
246251
notchOutline: () => {},
247252
closeOutline: () => {},
248253

0 commit comments

Comments
 (0)