Skip to content

docs(material/select): Disabling the select or individual options #25065

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

Merged
merged 3 commits into from
Jun 12, 2022

Conversation

jljohnson001
Copy link
Contributor

Update documentation to include ReactiveForms use case

Fixes #24762

@jljohnson001 jljohnson001 requested a review from crisbeto as a code owner June 11, 2022 16:39
Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI is failing, because the commit title is supposed to start with docs(material/select):.

@@ -54,6 +54,9 @@ In some cases that `<mat-form-field>` may use the placeholder as the label (see

It is possible to disable the entire select or individual options in the select by using the
disabled property on the `<select>` or `<mat-select>` and the `<option>` or `<mat-option>` elements respectively.
When working with Reactive Forms the select component can be disabled/enabled via form controls.
This can be accomplished by creating a FormControl with the disabled property
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be backticks around "FormControl" here.

@@ -54,6 +54,9 @@ In some cases that `<mat-form-field>` may use the placeholder as the label (see

It is possible to disable the entire select or individual options in the select by using the
disabled property on the `<select>` or `<mat-select>` and the `<option>` or `<mat-option>` elements respectively.
When working with Reactive Forms the select component can be disabled/enabled via form controls.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: there should be a comma between "Forms" and "the".

@jljohnson001 jljohnson001 changed the title fix(docs/mat-select): Disabling the select or individual options docs(material/select): Disabling the select or individual options Jun 12, 2022
Update documentation to include ReactiveForms use case

Fixes angular#24762
Update documentation to include ReactiveForms use case

Fixes angular#24762
@jljohnson001 jljohnson001 force-pushed the jljohnson001-fix-docs-mat-select branch from b8a40f9 to 7c2c14d Compare June 12, 2022 16:23
@crisbeto crisbeto added docs This issue is related to documentation merge safe target: patch This PR is targeted for the next patch release merge: fix commit message When the PR is merged, rewrites/fixups of the commit messages are needed action: merge The PR is ready for merge by the caretaker labels Jun 12, 2022
@crisbeto crisbeto merged commit aadcb96 into angular:main Jun 12, 2022
crisbeto pushed a commit that referenced this pull request Jun 12, 2022
…ual options (#25065)

* docs(material/select): Disabling the select or individual options

Update documentation to include ReactiveForms use case

Fixes #24762

* docs(material/select): Disabling the select or individual options

Update documentation to include ReactiveForms use case

Fixes #24762

* docs(material/select): Disabling the select or individual options

PR Feedback (add comma, add backticks)

Fixes #24762

(cherry picked from commit aadcb96)
@jljohnson001 jljohnson001 deleted the jljohnson001-fix-docs-mat-select branch June 12, 2022 16:54
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker docs This issue is related to documentation merge: fix commit message When the PR is merged, rewrites/fixups of the commit messages are needed target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs-bug(mat-select): Disabling the select or individual options
2 participants