Editor Modal closes while trying to scroll bar using mouse

Editor Modal closes while trying to scroll bar using mouse

karmendrakarmendra Posts: 21Questions: 7Answers: 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

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 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: 21Questions: 7Answers: 0

    I am using bootstrap3

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 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

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    Quick update to say that the fix has been committed for this and 1.9.3 will ship later this week with it.

    Allan

This discussion has been closed.