Click on "UiKit Modal Button" triggers "Add to cart" Button

  • Posts: 1
  • Thank you received: 0
7 years 7 months ago #279963

I'm trying to use an uikit modal button ( getuikit.com/docs/modal ) in the product description. A click on the modal button shows the modal-popup but also also triggers the "add to cart" function.

How can I prevent that?

Best regards,

Marc

Please Log in or Create an account to join the conversation.

  • Posts: 83780
  • Thank you received: 13568
  • MODERATOR
7 years 7 months ago #279970

Hi,

Try adding an attribute onclick="return false;" to your button to prevent the auto submission of the form where the button is placed.

Please Log in or Create an account to join the conversation.

Time to create page: 0.039 seconds
Powered by Kunena Forum