Editor Modal closes while trying to scroll bar using mouse

Editor Modal closes while trying to scroll bar using mouse

karmendrakarmendra Posts: 12Questions: 5Answers: 0

This question is just to highlight Question https://datatables.net/forums/discussion/comment/166954.

There is a solution provided by @allan

var allowBackgroundClick = false;
$(document).on('mousedown', 'div.modal', function (e) {
    allowBackgroundClick = $(e.target).hasClass('modal') && conf.shown
        ? true
        : false;
} );

$(document).on('click', 'div.modal', function (e) {
    if ( $(e.target).hasClass('modal') && allowBackgroundClick ) {
        dte.background();
    }
} );

It works, but this not part of Editor 1.9.2 release, any plans on including this as a patch release?

Thanks,
K

Answers

  • allanallan Posts: 51,422Questions: 1Answers: 7,754 Site admin

    Hi,

    As I noted in my reply to you yesterday in the thread you linked to - it is indeed in the Editor 1.9.2 release, in the editor.bootstrap4.js file. Are you using Bootstrap 4 styling or something else?

    Allan

  • karmendrakarmendra Posts: 12Questions: 5Answers: 0

    I am using bootstrap3

  • allanallan Posts: 51,422Questions: 1Answers: 7,754 Site admin

    Thanks for letting me know that. I agree - I can see that error in Bootstrap 3 as well. We will have it fixed for v1.9.3.

    Allan

Sign In or Register to comment.