bootstrap 4 modal remove overlay code example
Example 1: bootstrap diable backround on modal
<button data-target="#myModal" data-toggle="modal" data-backdrop="static" data-keyboard="false">
Launch demo modal
</button>`
Example 2: bootstrap diable backround on modal
$('#myModal').modal({backdrop: 'static', keyboard: false})