diff options
| author | Benjamin Vray <bvr@odoo.com> | 2020-06-30 13:23:31 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-06-30 14:19:17 +0000 |
| commit | 58179cebf19b78b6c0feeac0edf7f30f49ad41bb (patch) | |
| tree | 1f767fe9cefbf4147d0f5b86c969e675ba2bfb18 /addons/web/static/src/xml/base.xml | |
| parent | 4341a4d79571047bee3ab7560cd6d7fceb1368ad (diff) | |
[IMP] web, *: replace the bootstrap backdrop element with a bg on modals
*: web_editor
Do not display the backdrop element added by bootstrap in the body and
add a background on the modal to keep the same effect. The bootstrap
backdrop was probably useful for compatibility with <IE9 but is no
longer needed. This also avoids z-index issues because modals could be
opened in an element (e.g. the website #wrapwrap) whose stacking context
is different of the body one (where the backdrop is opened). This would
make the backdrop appears on top of the modal.
Part of https://github.com/odoo/odoo/pull/49142
Related to task-2229551
Co-authored-by: qsm-odoo <qsm@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 7cb009b95fb..fab3018fb46 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -461,12 +461,13 @@ <t t-name="web.OwlDialog" owl="1"> <Portal target="'body'"> <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" t-att-class="{ o_technical_modal: props.technical, o_modal_full: props.fullscreen }" + t-att-data-backdrop="'' + props.backdrop" t-ref="modal" t-on-close_dialog.stop="_close" + t-on-click="_onBackdropClick" > <div class="modal-dialog" t-att-class="size"> <div class="modal-content" t-att-class="props.contentClass"> |
