Skip to content

Commit 7746db5

Browse files
committed
docs(material/select): Disabling the select or individual options
Update documentation to include ReactiveForms use case Fixes #24762
1 parent c990d91 commit 7746db5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/material/select/select.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ In some cases that `<mat-form-field>` may use the placeholder as the label (see
5454

5555
It is possible to disable the entire select or individual options in the select by using the
5656
disabled property on the `<select>` or `<mat-select>` and the `<option>` or `<mat-option>` elements respectively.
57+
When working with Reactive Forms the select component can be disabled/enabled via form controls.
58+
This can be accomplished by creating a FormControl with the disabled property:
59+
`FormControl({value: '', disabled: true})` or `FormControl.enable()`, `FormControl.disable()`.
5760

5861
<!-- example(select-disabled) -->
5962

0 commit comments

Comments
 (0)