3
0
Fork 0

[FIX] #921 Fixed issue when discard a modal with draggable element

11.0
Quentin THEURET 2018-05-15 20:42:14 +02:00
parent 6feb307ccb
commit 6087242852
1 changed files with 5 additions and 3 deletions

View File

@ -36,9 +36,11 @@ Dialog.include({
},
close: function() {
var draggable = this.$modal.draggable( "instance" );
if (draggable) {
this.$modal.draggable("destroy");
if (this.$modal) {
var draggable = this.$modal.draggable("instance");
if (draggable) {
this.$modal.draggable("destroy");
}
}
return this._super.apply(this, arguments);
},