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.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08