Preview:
add_action( 'wp_footer', 'bbloomer_cart_refresh_update_qty' ); 
 
function bbloomer_cart_refresh_update_qty() {
   if ( is_cart() || ( is_cart() && is_checkout() ) ) {
      wc_enqueue_js( "
         $('div.woocommerce').on('click', 'input.qty', function(){
            $('[name=\'update_cart\']').trigger('click');
         });
      " );
   }
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter