Just fyi for anybody that uses the Bootstrap modal-header class (which is default on modals.)
Most likely if you are impacted by this, you can add justify-content-between
to your class list next to modal-header
or modify the modal-header
class itself to resolve.