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

104
Views
Dialog opens automatically on Iphone, Chrome

I have a dialog that is working fine (opening only on click) across all tested devices/browser aside from iphone XS, 15.3.1 software version, on Chrome, version 101.0.4951.58, in which the dialog opens straight away without any prompt or click, as soon as the whole page loads and I start scrolling down.

here is my code:

HTML

<dialog class="helper-modal" id="helper-modal">
                    <img id="close-modal" src="/images/icon_close.svg" alt="Close modal"/>
                        <div class="header">
                            <h3>Helper</h3>
                            <p>Lobortis elementum nibh tellus molestie nunc non blandit massa enim.</p>
                        </div>
</dialog>

JS

const helperModal = document.getElementById('helper-modal');
 button.onclick = () =>{
       helperModal.show();
  }

any idea what might be causing this?

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!