mirror of https://github.com/OCA/web.git
commit
52c8ad1c5f
|
@ -155,7 +155,7 @@ odoo.define("web_drop_target", function (require) {
|
||||||
const abstractAction = this.findAncestor(function (ancestor) {
|
const abstractAction = this.findAncestor(function (ancestor) {
|
||||||
return ancestor instanceof AbstractAction;
|
return ancestor instanceof AbstractAction;
|
||||||
});
|
});
|
||||||
const controller = abstractAction.currentDialogController;
|
const controller = abstractAction && abstractAction.currentDialogController;
|
||||||
if (
|
if (
|
||||||
_.isEmpty(this._get_drop_items(ev)) &&
|
_.isEmpty(this._get_drop_items(ev)) &&
|
||||||
this._checkDragOver() &&
|
this._checkDragOver() &&
|
||||||
|
@ -186,7 +186,9 @@ odoo.define("web_drop_target", function (require) {
|
||||||
*/
|
*/
|
||||||
_onBodyFileDrop: function (ev) {
|
_onBodyFileDrop: function (ev) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
|
if (this._drop_overlay) {
|
||||||
this._drop_overlay.addClass("d-none");
|
this._drop_overlay.addClass("d-none");
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue