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.
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