xxxxxxxxxx
<!-- for bootstrap 5 -->
<!-- Add this below code to your modal div
data-bs-backdrop="static" data-bs-keyboard="false"
-->
<div className="modal fade" data-bs-backdrop="static" data-bs-keyboard="false" id="sendOtpModal" tabIndex="-1" aria-labelledby="sendOtpModalLabel" aria-hidden="true">
</div>
xxxxxxxxxx
<div class="modal fade" id="myModal" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">