Browse Source

fix issue with filemanager modal and scroll

develop
Simon Vieille 1 month ago
parent
commit
5e21a23cb1
  1. 9
      assets/js/admin/modules/modal.js

9
assets/js/admin/modules/modal.js

@ -25,8 +25,15 @@ const openModal = function (url) {
module.exports = function () {
let click = 0
const body = $('body')
body.on('hidden.bs.modal', '.modal', (e) => {
if ($('.modal.show').length) {
$('body').addClass('modal-open')
}
})
$('body').on('click', '*[data-modal]', (e) => {
body.on('click', '*[data-modal]', (e) => {
e.preventDefault()
e.stopPropagation()

Loading…
Cancel
Save