diff --git a/package.json b/package.json index 2f8d30c..4b34040 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wkit", - "version": "1.11.4", + "version": "1.11.5", "type": "module", "description": "A library for building fast, lightweight web components.", "main": "dist/index.js", diff --git a/src/html.js b/src/html.js index 86a21ab..a729c2a 100644 --- a/src/html.js +++ b/src/html.js @@ -548,7 +548,8 @@ class AttributePart { this.#value[i] = v } } - if (changed) { + // value属性做特殊处理, 解决输入框无法清空的问题 + if (changed || this.name === 'value') { this.commitValue(value) } }