replace innerHTML += with proper appendChild
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
export const b = {}
|
||||
|
||||
export function addCollection(ev, sender, el) {
|
||||
el.innerHTML += b.templates.collectionItem;
|
||||
const parser = new DOMParser();
|
||||
const e = parser.parseFromString(b.templates.collectionItem, 'text/html').body.firstElementChild;
|
||||
el.appendChild(e);
|
||||
}
|
||||
|
||||
export function deleteCollection(ev, sender, el) {
|
||||
|
||||
Reference in New Issue
Block a user