• Resolved alivethemes

    (@alivethemes)


    So I saw several posts about this and I have a solution maybe you can further debug but this code works as a fix:

    disable enter on form and manually trigger blur on qty fields?

    $('.woocommerce-cart-form .qty.text').on('keyup keypress', function(e) {
      var keyCode = e.keyCode || e.which;
      if (keyCode === 13) { 
    	$('.woocommerce-cart-form .qty.text').trigger( "blur" );
        e.preventDefault();
        return false;
      }
    });
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Enter key on cart page breaks layout’ is closed to new replies.