Skip to content

Commit

Permalink
Update prev-next.js trying HTML instead of Text
Browse files Browse the repository at this point in the history
  • Loading branch information
davenichols-DHLS authored Apr 10, 2024
1 parent f7b0458 commit 109cf6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blocks/prev-next/prev-next.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ const HTML_ARROW_NEXT = '<svg fill="rgba(129,51,151,1)" width="30px" height="30p

export default async function decorate(block) {
const moveHeaderLinkDiv = (el) => {
const text = el.innerText;
const text = el.innerHTML;
const newDiv = document.createElement('div');
newDiv.classList.add('prev-next-header-link');
newDiv.innerText = text;
el.innerText = '';
newDiv.innerHTML = text;
el.innerHTML = '';
el.insertAdjacentElement('afterbegin', newDiv);
};

Expand Down

0 comments on commit 109cf6c

Please sign in to comment.