Skip to content

Commit 438fbee

Browse files
committed
Fix textarea clone sizing
1 parent 373f4fe commit 438fbee

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/snapdom/clone.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export function deepCloneBasic(node) {
112112
clone.textContent = node.value;
113113
clone.value = node.value;
114114
const rect = node.getBoundingClientRect();
115+
clone.style.boxSizing = 'border-box';
115116
clone.style.width = `${rect.width}px`;
116117
clone.style.height = `${rect.height}px`;
117118
return clone;

0 commit comments

Comments
 (0)