summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorAurélien Warnon <awa@odoo.com>2020-10-30 08:19:46 +0000
committerAurélien Warnon <awa@odoo.com>2020-11-16 09:34:32 +0000
commit06d2b067e56ef7fde5e5ad21e99d868ea5914adb (patch)
tree20bb46a2e1548495c7da7c452ba4cf204c224e07 /addons/web/static/src
parentf7795f85ed66fcebaf8a96bf4e550b069fcf1e83 (diff)
[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) <aab@odoo.com> Signed-off-by: awa-odoo <awa-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/views/kanban/kanban_record_quick_create.js2
1 files changed, 1 insertions, 1 deletions
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;
}