Skip to content

Instantly share code, notes, and snippets.

@marcusig
Created April 26, 2022 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusig/a720744190dd2b13b1726c7e915ebc56 to your computer and use it in GitHub Desktop.
Save marcusig/a720744190dd2b13b1726c7e915ebc56 to your computer and use it in GitHub Desktop.
Fix-plus-minus-buttons for the theme Stoni
jQuery('body').on('click', '.quantity.number-input span.plus, .quantity.number-input span.minus', function(e){
setTimeout( function() {
jQuery( this.parentNode ).find( 'input[type=number]' ).trigger( 'change' );
}.bind( this ), 20 )
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment