I have converted an old BS4 site to BS5 and the modals don’t seem to work. Is there something I have to adjust to get Bootstrap to recognize the modals?
Popovers don’t seem to convert either? Do I have to redo them all or is that not an option in BS5?
Hi Brad, which part is not converting? The js includes or the code? Or both?
Possibly both? All I know is they do not open.
How would I tell what is not updating?
Here is the Modal Link Button
<button id="jobdetails" class="btn btn-success btn-sm" dmx-on:click="modalJobDetails.data_detailJobOrder.select(JOId)" data-bs-toggle="modal" data-bs-target="#modalJobDetails">Details</button>
Here is the Popover code
<a href="#" class="btn btn-outline-success w-100 btn-sm" dmx-bs-popover="id_description" dmx-bind:popover-title="id_title" data-bs-placement="auto" data-bs-trigger="hover" data-bs-html="true"><i class="fal fa-comment-alt-lines"></i> More Info</a>
Ok i will try to recreate this locally ![]()
I think I have found the problem. This is in a SPA site and the content page header information isn’t getting updated. I ran into the same issue with alerts. Adding a new alert to the page added the correct reference in the header and works. I will try that with modals and popovers to confirm.
EDIT: I can confirm this is what is happening. Re-adding the modal and popovers adds the proper reference in the header of the content page.