Skip to content

Commit

Permalink
fix: textarea content rendered twice (closes #50)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmerle authored and qq15725 committed Feb 13, 2025
1 parent 7647a4f commit 30ae39d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/copy-input-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ export function copyInputValue<T extends HTMLElement | SVGElement>(
node: T,
cloned: T,
): void {
if (isTextareaElement(node)) {
cloned.innerHTML = node.value
}

if (isTextareaElement(node) || isInputElement(node) || isSelectElement(node)) {
cloned.setAttribute('value', node.value)
}
Expand Down

0 comments on commit 30ae39d

Please sign in to comment.