Skip to content

Enhance FormDefinitionField with FormState#43

Open
miladvafaeifard wants to merge 1 commit intosyncrea:masterfrom
miladvafaeifard:feature/form-state
Open

Enhance FormDefinitionField with FormState#43
miladvafaeifard wants to merge 1 commit intosyncrea:masterfrom
miladvafaeifard:feature/form-state

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