I have an element that conditionally appears that is required to be filled out when visible. (using ng-required)
However, when it is not visible, I'm getting the following error:
An invalid form control with name='' is not focusable
How do I force ng-required to work ONLY if it element is visible. I do not want to enter novalidate in the form, because if I do, when the element is visible, the validation does not occur.