summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorJulien Mougenot <jum@odoo.com>2020-01-14 10:45:41 +0000
committerJulien Mougenot <jum@odoo.com>2020-03-13 09:37:29 +0000
commitda8790f0bb3d561cda9a9db95a3e980f91a8e7fd (patch)
treef1ca7abe257a4424563413906a03dc7b9b79874f /addons/web/static/src/xml
parent384e516218375000461aa3fcb0ac1b9eaa960fb3 (diff)
[IMP] web: Dialog: add option to stop click propagation
There are situations where we don't want clicks to be detected behind an opened dialog: for example, when a dialog is opened by a dropdown, we may want to keep the dropdown open while we interact with the dialog. There is now an option (default: true) to stop clicks propagation when they arrive at the dialog container.
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 363097c6d89..07919bcfa84 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -28,7 +28,7 @@
<t t-name="OwlDialog" owl="1">
<Portal target="'body'">
- <div class="o_dialog" t-on-focus="_onFocus">
+ <div class="o_dialog" t-on-focus="_onFocus" t-on-click="_onClick">
<div t-if="props.backdrop" class="modal-backdrop show" t-on-click="_onBackdropClick"/>
<div role="dialog" class="modal"
tabindex="-1"