From 5df12c183ec18aacb7465d6c70801de09495a73a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Geelen=20=28sge=29?= Date: Mon, 23 Nov 2020 16:03:53 +0000 Subject: [PATCH] [IMP] web_editor: update Jabberwock library to commit 4b2c903b Changelog: [FIX] DomLayout: Make sure falsy attribute values are not transformed into null closes odoo/odoo#61875 Signed-off-by: David Monjoie (dmo) --- addons/web_editor/static/lib/jabberwock/jabberwock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/lib/jabberwock/jabberwock.js b/addons/web_editor/static/lib/jabberwock/jabberwock.js index d0bd45d2fc5..c6a4c60eeaa 100644 --- a/addons/web_editor/static/lib/jabberwock/jabberwock.js +++ b/addons/web_editor/static/lib/jabberwock/jabberwock.js @@ -14624,7 +14624,7 @@ odoo.define('web_editor.jabberwock', (function(require) { const newAttributes = domObject.attributes || {}; const oldAttributes = (old === null || old === void 0 ? void 0 : old.object.attributes) || {}; for (const name in oldAttributes) { - if (!newAttributes[name]) { + if (typeof newAttributes[name] === 'undefined') { hasChanged = true; if (name === 'style') { for (const key in oldAttributes[name]) {