Having an odd issue with Bootstrap 5.0.2
In order to close the modal, I have to double-click the button (data-bs-dismiss)
It's worth noting that I use multiple modals on the page, but they only open when needed.
<div class="modal" id="open-rating-modal-for-order" tabindex="-1" aria-labelledby="open-call-modal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<form method='POST' onsubmit="return validate_rating_modal()">
<input type='hidden' name='page' value='submit-rate' />
<input type='hidden' name='csrf_token' value="{$csrf_token}" />
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">
rates
</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
</div>
</div>
</div>