Skip to content

Commit

Permalink
UHF-9797: Fix page rendering to replace the placeholder text
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkkimaagi committed Apr 18, 2024
1 parent 2ec7503 commit 62f6cfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/hds-cc/hds-cc.js
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,9 @@ class HdsCookieConsentClass {
const container = document.createElement('div');
container.classList.add('hds-cc__target');
container.style.all = 'initial';
if (!isBanner) {
renderTarget.innerHTML = '';
}
renderTarget.prepend(container);
const shadowRoot = container.attachShadow({ mode: 'open' });
this.#shadowRoot = shadowRoot;
Expand Down

0 comments on commit 62f6cfb

Please sign in to comment.