Quantcast
Channel: Editor — DataTables forums
Viewing all articles
Browse latest Browse all 3740

Select2 Bootstrap5 Unable To Type In Input

$
0
0

https://live.datatables.net/hehoditi/2/edit

Open the editor, click "priority" and try and type in the input. This is the select2 tagging option. See it work here: https://select2.org/tagging

I have been working on this for a while and theres a few threads out there like here and even the official docs here.

The short answer is "just add dropdownParent: $('#myModal') to the select2 options".

However I am unable to apply that because I am using Editor + Editor Select2 Plugin. In the plugin's create method is where the input is created and select2 is initialized long before there is a modal.

So I believe the Select2 plugin needs to be edited but I am hitting my limit on how. My first idea is that maybe the editor instance needs to be obtained in create, and the select2 input needs to be initialized only after the modal is created?


Viewing all articles
Browse latest Browse all 3740

Trending Articles