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

allow disabled formgroup at initialization #54790

Open
alex36077 opened this issue Mar 9, 2024 · 1 comment
Open

allow disabled formgroup at initialization #54790

alex36077 opened this issue Mar 9, 2024 · 1 comment
Labels
area: forms feature Issue that requests a new feature
Milestone

Comments

@alex36077
Copy link

Which @angular/* package(s) are relevant/related to the feature request?

No response

Description

Currently to disable a formgroup. You first initialize it and then call form.disable().

Proposed solution

It would be interesting to move the disabled property to the AbstractControlOptions interface to allow for example to disable a formgroup at initialization.

Alternatives considered

No alternatives

@ngbot ngbot bot added this to the needsTriage milestone Mar 9, 2024
@alxhub alxhub added the feature Issue that requests a new feature label Mar 13, 2024
@ngbot ngbot bot modified the milestones: needsTriage, Backlog Mar 13, 2024
@geromegrignon
Copy link
Contributor

I would be happy to contribute if/when this request is accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: forms feature Issue that requests a new feature
Projects
None yet
Development

No branches or pull requests

4 participants