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

142
Views
Yii2 Modal close button not working with JQuery 3.6.0

I just updated my JQuery.js to version 3.6.0 and all of a sudden some of my functions stopped working, eg my modal close buttons don't work anymore. I am using Yii2 ver2.0.45. I was previously using JQuery 3.4.4 which was working very well. Any suggestions/solutions will be appreciated. Here is my modal code block.

<?php
    Modal::begin([
        'title' => '<h4></h4>',
        'id' => 'modal',
        'titleOptions' => [
            'style' => 'background: rgba(0, 0, 0, 0.5)',
        ],
        'closeButton' => [
            'class' => 'btn btn-danger btn-xs pull-right',
        ],
        'options' => [
            'tabindex' => false // important for Select2 to work properly
        ],
        'size' => 'modal-lg',
        // keeps from closing modal with esc key or by clicking out of the modal
        // user must click cancel or X to close
        'clientOptions' => ['backdrop' => 'static', 'keyboard' => false],
    ]);
    $contentDiv = "<div id='content'></div>";
    echo $contentDiv;
    Modal::end();
?>
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!