JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://code.jquery.com/jquery-3.4.1.slim.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.css">
<a data-toggle="modal" href="#myModal" class="btn btn-primary">Click Me</a>

<div class="modal" id="myModal">
	<div class="modal-dialog modal-lg ">
      <div class="modal-content">
        <div class="modal-header">
          <h4 class="modal-title">Modal title</h4>    
          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        </div><div class="container"></div>
        <div class="modal-body">
          Scrollin effect for this model is working at the beginning. 
          But if load the 2nd model and close it, then this scrolling effect is not working anymore.
          --------------------------------------------------------
          Scrollin effect for this model is working at the beginning. 
          But if load the 2nd model and close it, then this scrolling effect is not working anymore.
          --------------------------------------------------------
          Scrollin effect for this model is working at the beginning. 
          But if load the 2nd model and close it, then this scrolling effect is not working anymore.
          --------------------------------------------------------
          Scrollin effect for this model is working at the beginning. 
          But if load the 2nd model and close it, then this scrolling effect is not working anymore.
          --------------------------------------------------------
          Scrollin effect for this model is working at the beginning. 
          But if load the 2nd model and close it, then this...

CSS

.modal:nth-of-type(even) {
    z-index: 1052 !important;
}
.modal-backdrop.show:nth-of-type(even) {
    z-index: 1051 !important;
}

JavaScript

$(document).on('hidden.bs.modal', '.modal', function () {
    $('.modal:visible').length && $(document.body).addClass('modal-open');
});