bootstrap-validator
bootstrap-validator copied to clipboard
$block.data is not a function
In line 258 at clearErrors
It throws this error on two radio-buttons which trigger to show/hide elements in the form.
I debugged validator.js several hours but did not see any chance to avoid this error.
Finally I changed the line to
if ($block.html && $block.data) $block.html($block.data('bs.validator.originalContent'))