[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
This commit is contained in:
Sébastien Geelen (sge)
2022-04-21 07:59:43 +02:00
parent d41bf197d1
commit 7aaa481ee6
@@ -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;