Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not playing nice with custom radio's and checkboxes, especially inline #8

Open
ghost opened this issue Oct 5, 2019 · 1 comment
Open

Comments

@ghost
Copy link

ghost commented Oct 5, 2019

Just ran into this awesome add-on, that saved me a lot of headaches. Just wanted to let you know that is doesn't really play nicely with the custom-control's for radio and checkboxes. Especially the inline one's get messed up.
2019-10-05_18-43-56

@helluvamatt
Copy link

At https://github.com/brecons/jquery-validation-unobtrusive-bootstrap/blob/master/dist/unobtrusive-bootstrap.js#L27

Need to replace this block with something like this:

if (element.parent().hasClass('input-group') || element.hasClass('custom-control-input')) {
    error.insertAfter(element.parent());
} else {
    error.insertAfter(element);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant