The woocommerce MiniCartBlock has this to open the drawer in plugins\woocommerce\packages\woocommerce-blocks\assets\js\blocks\mini-cart\block.tsx 122
const openMiniCart = () => {
if ( addToCartBehaviour === 'open_drawer' ) {
setSkipSlideIn( false );
setIsOpen( true );
}
};
It also has this...
document.body.addEventListener(
'wc-blocks_added_to_cart',
openMiniCart
);
So my question is how do i fire this event 'wc-blocks_added_to_cart' or any other method so that the drawer opens. I tried this to fire the event but no luck -> jQuery( document.body ).trigger( 'wc-blocks_added_to_cart' );