Editor Modal closes while trying to scroll bar using mouse
Editor Modal closes while trying to scroll bar using mouse
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
This discussion has been closed.
Answers
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
I am using bootstrap3
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
Quick update to say that the fix has been committed for this and 1.9.3 will ship later this week with it.
Allan