In order to disable the button when the remarks are marked as failed.
Here is an example scenario:
Imagine there is an array containing two to four items.
First example:
ITEM 1 -> FAILED -> Remarks (required)
ITEM 2 -> FAILED -> Remarks (required)
ITEM 3 -> FAILED -> Remarks (required)
ITEM 4 -> FAILED -> Remarks (required)
The button will be disabled until all textareas are filled in by the user.
Second example:
ITEM 1 -> FAILED -> Remarks (required)
ITEM 2 -> PASSED -> Remarks (optional)
ITEM 3 -> FAILED -> Remarks (required)
ITEM 4 -> FAILED -> Remarks (required)
The user needs to fill in the three textareas labeled as 'FAILED' in order for the button to become enabled.
ITEM 1 -> PASSED -> Remarks (optional)
ITEM 2 -> PASSED -> Remarks (optional)
ITEM 3 -> PASSED -> Remarks (optional)
ITEM 4 -> PASSED -> Remarks (optional)
The button will automatically become enabled in this case.
For code reference, visit: https://stackblitz.com/edit/ng-zorro-antd-start-xz4c93
Thank you in advance