Skip to content

Commit

Permalink
switch to textContent
Browse files Browse the repository at this point in the history
  • Loading branch information
ludoboludo committed Jul 2, 2024
1 parent 6495238 commit d9df1e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class CartItems extends HTMLElement {
updateLiveRegions(line, message) {
const lineItemError =
document.getElementById(`Line-item-error-${line}`) || document.getElementById(`CartDrawer-LineItemError-${line}`);
if (lineItemError) lineItemError.querySelector('.cart-item__error-text').innerHTML = message;
if (lineItemError) lineItemError.querySelector('.cart-item__error-text').textContent = message;

this.lineItemStatusElement.setAttribute('aria-hidden', true);

Expand Down

0 comments on commit d9df1e7

Please sign in to comment.