Backdrop, I did't find a way to change bs3 backdrop option after the dialog is popped up, so here's a new wheel.
Looks like the original author wanted to provide a way to change this setting dynamically. The downside of the custom implementation is that it doesn't work as well - if the user clicks inside the dialog (e.g. to select text), and releases the mouse outside, the dialog closes, which can be quite inconvenient. The native Bootstrap doesn't have this limitation. And I don't think controlling this option dynamically is very useful anyway.
A gif demonstrating the issue:
P.S. I wasn't able to minify the code, since Gulp 4 (which is installed via npm install) isn't supported, and Gulp 3 doesn't support recent npm versions.
The comment explains why it was necessary:
Looks like the original author wanted to provide a way to change this setting dynamically. The downside of the custom implementation is that it doesn't work as well - if the user clicks inside the dialog (e.g. to select text), and releases the mouse outside, the dialog closes, which can be quite inconvenient. The native Bootstrap doesn't have this limitation. And I don't think controlling this option dynamically is very useful anyway.
A gif demonstrating the issue:
P.S. I wasn't able to minify the code, since Gulp 4 (which is installed via
npm install
) isn't supported, and Gulp 3 doesn't support recent npm versions.