KasperOlesen / DataTable-AltEditor

Updated version of the free-datatables-editor-alternative from Kingcode.com
MIT License
329 stars 195 forks source link

Select2 set focus is not working #198

Open delegate-it opened 2 years ago

delegate-it commented 2 years ago

Hi

I have an alteditor with Select2 and I need to have the Select2 get the focus and open the select2 so the user will be able to start searching immediately once the alteditor modal is opened.

I have added the below code but for some reason the select2 is not opening. addModalOpen: function (altEditor, dt, selector) { $('#child').select2('open');

after inspecting, I found that the span that has the list of element has a width of 0 and positioned to the top left corner.

Do you know how we can fix this issue?

Thanks in advance