Closing the dialog by double click outside it is a part of the widget’s UX, but there’s is a tricky way to disable it if you don’t need this behavior for some reason. You can do this with with this code snippet
uploadcare.plugin(function(uc) {
var oldOpenDialog = uc.openDialog;
uc.openDialog = function() {
var result = oldOpenDialog();
uploadcare.jQuery('.uploadcare--dialog').off('dblclick');
return result;
};
})();
Check it out live here.
- It helps
- It doesn’t help
0 voters