From 00bad171c21ff727a01e682eb30e9c0c2e4c49a1 Mon Sep 17 00:00:00 2001 From: bordun Date: Tue, 24 Nov 2020 10:58:08 +0100 Subject: [PATCH] widget: css-safe hash (nanoid update) --- src/client/widgets/common/widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/widgets/common/widget.js b/src/client/widgets/common/widget.js index 33269a25..f8c045a2 100644 --- a/src/client/widgets/common/widget.js +++ b/src/client/widgets/common/widget.js @@ -180,7 +180,7 @@ class Widget extends EventEmitter { this.errors = {} this.parent = options.parent this.parentNode = options.parentNode - this.hash = options.hash || nanoid(10) + this.hash = options.hash || 'W' + nanoid(9) this.children = [] this.reCreateOptions = options.reCreateOptions this.removed = false