Skip to content

Commit 2f81e8c

Browse files
NGSTACK-922 trim newlines and whitespaces, use firstChild
1 parent b046a61 commit 2f81e8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bundle/Resources/public/admin/js/multientry.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ class MultiEntry {
168168

169169
static create_element_from_string(elementString) {
170170
const template = document.createElement('template');
171-
template.innerHTML = elementString;
171+
template.innerHTML = elementString.trim();
172172

173-
return template.content.firstElementChild;
173+
return template.content.firstChild;
174174
}
175175
}
176176

0 commit comments

Comments
 (0)