Shopify/buy-button-js

Cart Toggle has `display:none` set.

edalzell opened this issue · 2 comments

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:
CleanShot 2022-08-17 at 20 42 39@2x

Why is it hidden? Is there an easy way to make it visible?

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.

Yup, that's what I realized, thanks!