select2-bootstrap4-theme
select2-bootstrap4-theme copied to clipboard
.has-error, .has-success No Longer Valid for Bootstrap 4
changing all instances of .has-error
to .is-invalid
and .has-success
to .is-valid
allows validation classes to properly render on Select2 elements.
We should definitely fix this. PRs welcome.
For me, It looks like jQuery DataTables is adding has-error still. Not sure if they have fixed that. maybe what we want to do here is add both to the library? A lot of JS tools still use has-error as mentioned, but maybe we should follow BS4 and drop support as well.
Yeah, DataTables needs to update their Bootstrap 4 styling to reflect 4.1.1 - it wouldn't hurt to leave the legacy classes in there; you'd just have extra CSS.
DataTables fixed this recently https://editor.datatables.net/download/1.7.4