I am currently developing a dynamic form in Angular that allows users to request any number of parts, generating rows of input fields for each part.
Each part has specific required fields, some of which should only accept numbers. I have implemented validators for these requirements, but regardless of the input, the fields do not display as invalid. Interestingly, I have other validators outside of the parts section that function correctly and display error messages when inputs are left empty.
Conversely, there is an optional "Notes" field without any validators that is behaving as if it has Validators.required applied, marking it as invalid when left blank.
I'm struggling to identify the root cause of these issues. Despite my attempts to find a solution, I have been unsuccessful so far.
create.component.html
<h1>New Request</h1>
// Rest of the HTML code...
create.component.ts
// TypeScript code for component...
interface.ts (PurReqPart)
// Interface definition for PurReqPart object...