From 5e4edce18ce84bc34f098e5627fcf844c9850019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=A0=E6=89=8B=E6=8D=A7=E9=B2=9C=E8=8A=B1?= <157215725@qq.com> Date: Wed, 26 Apr 2023 10:39:02 +0800 Subject: [PATCH] fix: copy input value in web-component(close #22) --- src/copy-input-value.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/copy-input-value.ts b/src/copy-input-value.ts index ddce707..4bea5ba 100644 --- a/src/copy-input-value.ts +++ b/src/copy-input-value.ts @@ -9,6 +9,6 @@ export function copyInputValue( } if (isTextareaElement(node) || isInputElement(node) || isSelectElement(node)) { - (clone as HTMLTextAreaElement).value = node.value + clone.setAttribute('value', node.value) } }