When the cart has at least 1 product, the user can click on the cart block link and it displays information about the cart content. Clicking
again on it, will hide it.
This functionality is provided in commerce_cart/js/commerce_cart.js, commerceCartBlock behavior.
If big_pipe is enabled, and under certain circumstances I was not able to determine (it does not happen always), this functionality does not work well because this script is loaded 2 times, making the block to hide as soon as it is expanded. If big_pipe is uninstalled, this does not happen.
The reason is that the commerceCartBlock behavior does not have any checking for running it just once.

CommentFileSizeAuthor
#2 2971912-2.patch577 byteseldrupalista

Comments

eldrupalista created an issue. See original summary.

eldrupalista’s picture

StatusFileSize
new577 bytes

This patch adds a checking so this functionality runs only once, and it worked for me.

eldrupalista’s picture

eldrupalista’s picture

Status: Active » Needs review
bojanz’s picture

Status: Needs review » Needs work

Confirming that we need .once, but that means that we also need to add "- core/jquery.once" to the library requirements.

  • bojanz committed a0be96f on 8.x-2.x authored by eldrupalista
    Issue #2971912 by eldrupalista, bojanz: Big pipe conflicts with the cart...
bojanz’s picture

Status: Needs work » Fixed

Added the missing piece, and committed. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.