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();
?>