From 8b3c5c87ac8ecf35e390ea2ea5816e9141fc1ba7 Mon Sep 17 00:00:00 2001 From: Mubra <46692684+Mubra@users.noreply.github.com> Date: Mon, 30 Sep 2019 15:14:20 -0500 Subject: [PATCH] Issue_861 (#867) * closes #861 * solve issue #861 * CHANGES.rst file * CHANGES.rst correct --- CHANGES.rst | 2 +- webpack/app/js/layout.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index f353e7551..e47d00615 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,7 +6,7 @@ There's a frood who really knows where his towel is. 2.2.1 (unreleased) ^^^^^^^^^^^^^^^^^^ -- Nothing changed yet. +- The 'drop' event and its 'target' method are used to obtain the element (column) and not generate ambiguity (fixes `#861 `_). [Mubra] 2.2.0 (2019-02-26) diff --git a/webpack/app/js/layout.js b/webpack/app/js/layout.js index 419b8fad5..86c71c31f 100644 --- a/webpack/app/js/layout.js +++ b/webpack/app/js/layout.js @@ -301,6 +301,8 @@ export default class LayoutView { } new_tile.append(name_tag); + //the element is taken based on the 'drop' event + column_elem = e.target; $(column_elem).append(new_tile); this.delete_manager(new_tile);