Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

183
Views
Stopping Bootstrap from closing when tapping outside of it wont work

I've tried :

$('#myModal').modal({backdrop: 'static', keyboard: false}) 

And tried adding to the modal div:

data-backdrop="static" data-keyboard="false"

But it wont stop the bootstrap model from closing on outside touch. I am using IOS safari btw.

I got some input radio on the modal but didnt add them to the code here.

My modal:

        <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#myModal" style="position: fixed;">
            Launch modal
        </button>

        <!-- Modal -->
        <div id="myModal" class="modal fade hide"  tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
            <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-body">
                
                    <div id="sportHeader">choose sport:</div>

                </div>
            </div>
            </div>
        </div>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!