From 0cd2a8e1fe64fba2bc349aa9969a24e68b68925a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Mon, 26 Sep 2022 13:52:42 +0000 Subject: [PATCH] [IMP] web: update owl from 2.0.0-beta-20 to 2.0.0-beta-21 Release notes: https://github.com/odoo/owl/releases/tag/v2.0.0-beta-21 Details: - fix: prevent side effects at template compilation - fix: props validation: does not crash with t-call-context - fix: make t-portal work in all cases - fix: make props validation work through slots closes odoo/odoo#101207 X-original-commit: a09733b8d60ba36327695657221304ef19eaed42 Signed-off-by: Samuel Degueldre --- addons/web/static/lib/owl/owl.js | 81 ++++++++++++++++++-------------- 1 file changed, 47 insertions(+), 34 deletions(-) diff --git a/addons/web/static/lib/owl/owl.js b/addons/web/static/lib/owl/owl.js index 305489f5aea..4544670c287 100644 --- a/addons/web/static/lib/owl/owl.js +++ b/addons/web/static/lib/owl/owl.js @@ -675,6 +675,15 @@ : document.createElement(tagName); } if (el instanceof Element) { + if (!domParentTree) { + // some html elements may have side effects when setting their attributes. + // For example, setting the src attribute of an will trigger a + // request to get the corresponding image. This is something that we + // don't want at compile time. We avoid that by putting the content of + // the block in a