Cart Toggle has `display:none` set.
edalzell opened this issue · 2 comments
edalzell commented
Hi there, sorry if this is not the correct spot for this.
I'm trying a simple cart/toggle and I have this:
window.addEventListener('load', (event) => {
ui.createComponent('cart', {
id: 'shopify-cart',
node: document.getElementById('cart'),
options: {
cart: {
startOpen: false
}
}
});
});
However the toggle component has display:none
set on it:
Why is it hidden? Is there an easy way to make it visible?
ianjosephwilson commented
I don't think it shows the toggle until you add a product to the cart. I'm sure you are still trying to solve this from August but maybe someone else will find it.
edalzell commented
Yup, that's what I realized, thanks!