On covercraft we ran into an issue with required radio buttons where once an error message appeared, it would not go away.
The function to initially validate radio/checkbox inputs is passed a reference to the input. This allows the validation function to get attributes such as name and value for the element.
The function for re-validating radio/checkbox inputs was being passed something else which caused the console error TypeError: undefined is not an object (evaluating 'el.name'). To rectify this issue, the function for re-validating radio/checkbox inputs now receives a reference to the input.
On covercraft we ran into an issue with required radio buttons where once an error message appeared, it would not go away.
The function to initially validate radio/checkbox inputs is passed a reference to the input. This allows the validation function to get attributes such as name and value for the element.
The function for re-validating radio/checkbox inputs was being passed something else which caused the console error
TypeError: undefined is not an object (evaluating 'el.name')
. To rectify this issue, the function for re-validating radio/checkbox inputs now receives a reference to the input.