From 7aaa481ee67b8818e8c3ebd96d1902e502f32d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Geelen=20=28sge=29?= Date: Thu, 14 Apr 2022 14:02:58 +0000 Subject: [PATCH] [FIX] web_editor : initialize powerbox property Ensure the `_active` property on the PowerBox object is always a boolean. @see test/spec/copyPaste.test.js task-2604627 X-original-commit: 124298546cfbc129eb9ae934923a5e4e47392797 Part-of: odoo/odoo#89210 --- .../web_editor/static/lib/odoo-editor/src/powerbox/Powerbox.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web_editor/static/lib/odoo-editor/src/powerbox/Powerbox.js b/addons/web_editor/static/lib/odoo-editor/src/powerbox/Powerbox.js index b7acdbc21f5..7c5c0989138 100644 --- a/addons/web_editor/static/lib/odoo-editor/src/powerbox/Powerbox.js +++ b/addons/web_editor/static/lib/odoo-editor/src/powerbox/Powerbox.js @@ -12,6 +12,7 @@ function cycle(num, max) { export class Powerbox { constructor(options = {}) { + this._active = false; this.options = options; if (!this.options._t) this.options._t = string => string;