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

Enhance FormDefinitionField with FormState #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

miladvafaeifard
Copy link

No description provided.

@gionkunz
Copy link
Member

Hi Milad

Thanks for the PR. Can you quickly describe what you're trying to achieve with this change? It looks like other than the tests you have added, nothing internal is using this functionality.

@miladvafaeifard
Copy link
Author

Hi Gion,

Sure, actually it is nothing to do with the internal with this change. but couldn't be allowed to set disabled in the initial definition. TS will complain this even it is valid what the Angular form accepts this, please check out: https://angular.io/api/forms/FormControlState

is there way can be done to disable at the initial creation?

@miladvafaeifard
Copy link
Author

miladvafaeifard commented Nov 1, 2022

I guess I should refactor a bit in this PR by replacing FormState with FormControlState imported from angular/forms. I guess it only is available for Angular 14.x.x above. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants