Skip to content

Commit 88ca483

Browse files
committed
fix: use tbody as new element to prevent lost of tr and td elements
1 parent ac79266 commit 88ca483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ function cloneTemplate(template) {
297297
}
298298

299299
if (typeof clone === 'string') {
300-
let container = document.createElement('div');
300+
let container = document.createElement('tbody');
301301
container.innerHTML = clone;
302302
clone = container.firstChild
303303
container.remove()

0 commit comments

Comments
 (0)