Starts in:
2 DAYS
8 HRS
19 MIN
43 SEC
Starts in:
2 D
8 H
19 M
43 S
Open Closed

Select2 in Modals created by the ModalManager #3755


User avatar
0
dboutwell created

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)
  • User Avatar
    0
    dboutwell created

    Nevermind, I figured this out. My sleep deprived self was putting the dropdownParent value inside the AJAX options.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06