From 06d2b067e56ef7fde5e5ad21e99d868ea5914adb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Warnon?= Date: Fri, 30 Oct 2020 08:19:46 +0000 Subject: [FIX] web: improve the hit box of the kanban quick_create When the user clicks outside of the kanban quick create element, it's closing itself automatically. However, the "hit box" of this behavior is not entirely accurate and clicking on the very edge of the box would also close the element. This commit fixes the click behavior and allows clicking anywhere inside the quick create element. Task 2373095 closes odoo/odoo#61761 X-original-commit: 72ed82489daa2b82628dfdefeb06262e17e6548e Signed-off-by: Aaron Bohy (aab) Signed-off-by: awa-odoo --- addons/web/static/src/js/views/kanban/kanban_record_quick_create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src/js') diff --git a/addons/web/static/src/js/views/kanban/kanban_record_quick_create.js b/addons/web/static/src/js/views/kanban/kanban_record_quick_create.js index 902a8ef22aa..eae7c6b401b 100644 --- a/addons/web/static/src/js/views/kanban/kanban_record_quick_create.js +++ b/addons/web/static/src/js/views/kanban/kanban_record_quick_create.js @@ -283,7 +283,7 @@ var RecordQuickCreate = Widget.extend({ } // ignore clicks if target is inside the quick create - if (this.el.contains(ev.target) && this.el !== ev.target) { + if (this.el.contains(ev.target) || this.el === ev.target) { return; } -- cgit v1.2.3