select2 not working after updating jquery to 3.6 or bootstrap to 5.1

select2 not working after updating jquery to 3.6 or bootstrap to 5.1

wouterwouter Posts: 17Questions: 5Answers: 0

He everyone!

Select2 doesn't focus anymore on the input when opening after updating JQuery to 3.6.

testcase here: http://live.datatables.net/covuqelu/1/edit

to reproduce:
- click new to open the editor,
- click on the priority select2 field and it opens select2
- it doesn't set focus to the actual input field (you can click it and it works though)

If you change jquery to 3.5.1 by replacing the script to
it sets focus on the input after opening the select2 popup.

Furthermore, updating to bootstrap 5.1, breaks the entire input field.

to reproduce change the bootstrap library to 5.1:

  • click new to open the editor,
  • click on the priority select2 field and it opens select2
  • it doesn't set focus to the actual input field but you also can't click on it or type anything

Anyone else running into this?

Cheers!
W

Answers

  • colincolin Posts: 12,877Questions: 0Answers: 2,198

    I've updated your test case here so it's using jQuery 3.6.0 and BS 5.1.0 and everything appears to be working fine for me:

    This is on Ubuntu/Chrome. Please could you take a look in case I'm doing something wrong,

    Colin

Sign In or Register to comment.