How to disable dialog closing when user double-clicks outside the widget area?

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();
    return result;

Check it out live here.

  • It helps :+1:
  • It doesn’t help :-1:

0 voters