Skip to content

Commit

Permalink
Fix conflict between mini-cart and navigation blocks (woocommerce#5051)
Browse files Browse the repository at this point in the history
fix conflict between mini-cart and navigation blocks
  • Loading branch information
gigitux authored and jonny-bull committed Dec 16, 2021
1 parent a58b569 commit 033264b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/blocks/cart-checkout/mini-cart/frontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface dependencyData {
}

// eslint-disable-next-line @wordpress/no-global-event-listener
window.onload = () => {
window.addEventListener( 'load', () => {
const miniCartBlocks = document.querySelectorAll( '.wc-block-mini-cart' );
let wasLoadScriptsCalled = false;

Expand Down Expand Up @@ -153,4 +153,4 @@ window.onload = () => {
);
}
} );
};
} );

0 comments on commit 033264b

Please sign in to comment.