bootstrap-validate icon indicating copy to clipboard operation
bootstrap-validate copied to clipboard

Does not support Select2

Open ridintek opened this issue 4 years ago • 3 comments

I have simple code below and still doesn't support validation.

<select class="form-control select2" id="group" required>
  <option value=""></option>
  <option value="1">One</option>
</select>
<script>
  $('.select2').select2();
  bootstrapValidate("#group", "required:This is required!");
</script>

But it worked on input tag. Any idea?

ridintek avatar Sep 08 '21 18:09 ridintek

What version of bootstrap-validate and select 2 are you using? I'll take a look at it.

PascaleBeier avatar Sep 09 '21 11:09 PascaleBeier

Here is the codes..

Select2 Example

I'm using:

  • Select2 4.0.13
  • Bootstrap 4.1.3
  • Bootstrap Validate 2.2.0
  • jQuery 3.6.0

ridintek avatar Sep 17 '21 08:09 ridintek

Definitely a bug, thanks for reporting.

PascaleBeier avatar Sep 17 '21 09:09 PascaleBeier