mirror of https://github.com/OCA/web.git
[FIX] web_drop_target: Process only if you are on the expected area
parent
fec0941ee5
commit
6c11acadac
|
@ -2,7 +2,7 @@
|
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
{
|
||||
"name": "Drop target support",
|
||||
"version": "11.0.1.0.0",
|
||||
"version": "11.0.2.0.0",
|
||||
"author": "Therp BV,Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/web",
|
||||
"license": "AGPL-3",
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
* Holger Brunn <hbrunn@therp.nl>
|
||||
* Pablo Fuentes <pablo@studio73.es>
|
||||
* Akim Juillerat <akim.juillerat@camptocamp.com>
|
||||
* Enric Tobella <etobella@creublanca.es>
|
||||
|
|
|
@ -26,6 +26,9 @@ odoo.define('web_drop_target', function(require) {
|
|||
},
|
||||
|
||||
_on_drop: function(e) {
|
||||
if (!this._drop_overlay){
|
||||
return;
|
||||
}
|
||||
var drop_items = this._get_drop_items(e);
|
||||
e.preventDefault();
|
||||
this._remove_overlay();
|
||||
|
|
Loading…
Reference in New Issue