Skip to content

Commit

Permalink
Merge pull request #16 from jonathantneal/jn.empty-with-replace-children
Browse files Browse the repository at this point in the history
Update emptyElement helper to use replaceChildren
  • Loading branch information
1Marc committed Sep 21, 2022
2 parents 53f9112 + 6b62591 commit 73125d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ export const replaceWith = (parent, els) => {
export const replaceHTML = (el, html) => {
el.replaceChildren();
el.insertAdjacentHTML("afterbegin", html);
};
};

0 comments on commit 73125d2

Please sign in to comment.