widget: css-safe hash (nanoid update)

This commit is contained in:
bordun 2020-11-24 10:58:08 +01:00
parent 456b65647c
commit 00bad171c2

View file

@ -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