修复属性绑定

master
yutent 2023-11-20 13:59:18 +08:00
parent 0043895a66
commit afac6fddb2
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "wkit",
"version": "1.10.13",
"version": "1.10.14",
"type": "module",
"description": "A library for building fast, lightweight web components.",
"main": "dist/index.js",

View File

@ -481,7 +481,7 @@ class AttributePart {
this.$parent = parent
this.options = options
if (strings.length > 2 || strings[0] !== '' || strings[1] !== '') {
this._$committedValue = new Array(strings.length - 1).fill('')
this._$committedValue = Array(strings.length - 1).fill(null)
this.strings = strings
} else {
this._$committedValue = NOTHING