nobleclem / jQuery-MultiSelect

Turn a multiselect list into a nice and easy to use list with checkboxes.
https://springstubbe.us/projects/jquery-multiselect/
MIT License
289 stars 216 forks source link

it is mot working in modal of bootstrap #207

Closed Indianoor closed 3 months ago

Indianoor commented 3 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

nobleclem commented 3 months ago

Since you didn't provide any information I can only assume that the issue relates to the dynamic nature of the modal content. That content was loaded after the multiselect had been initialized. So you will need to find an appropriate place in your code to initialize the multiselect. You might be able to trigger the $('select[multiple]').multiselect( 'reload' ); callback after the modal content had been loaded into the DOM.