Do you guys have a solution for putting a Select2 autocomplete input in the modals created by the ModalManager? I have a widget that I am trying to create and when it gets initiated on a modal that is then created by the ModalManager, I am required to rerun the select2 initialization via the modalManager.onOpen
method but when this happens there doesn't appear to be a value I can set for the Select2 dropdownParent option that will work to make the dropdown usable.
I was able to set the z-index to get it to show, but it still gets created outside of the modal and thus can't be used.
Do you have any experience with this or solutions you can recommend?
1 Answer(s)
-
0
Nevermind, I figured this out. My sleep deprived self was putting the dropdownParent value inside the AJAX options.