Fix invisible share modal stuck

This commit is contained in:
yflory 2019-07-04 15:35:35 +02:00
parent e728b5aeeb
commit d41b314e4d

View File

@ -701,7 +701,10 @@ define([
}, },
keys: [13] keys: [13]
}]; }];
var frameLink = UI.dialog.customModal(link, {buttons: linkButtons}); var frameLink = UI.dialog.customModal(link, {
buttons: linkButtons,
onClose: config.onClose,
});
// Embed tab // Embed tab
var embed = h('div.cp-share-modal', [ var embed = h('div.cp-share-modal', [
@ -728,7 +731,10 @@ define([
}, },
keys: [13] keys: [13]
}]; }];
var frameEmbed = UI.dialog.customModal(embed, { buttons: embedButtons}); var frameEmbed = UI.dialog.customModal(embed, {
buttons: embedButtons,
onClose: config.onClose,
});
// Create modal // Create modal
var tabs = [{ var tabs = [{