Cart drawer opens and closes when changing quantity of product

10 0 1

I need the drawer to stay opened when I change the quantity of the product.

However in this state when I change the quantity it closes and then opens again with the new quantity. I don't know where I messed up the code. When I check the console the whole container and some other containers are reacting to the quantity change where in original theme it just affects the cart. Any idea how to fix this?