DEV Community

Discussion on: Why routing from a form button broke my app

Collapse
 
deiangi profile image
Deian Ivanov • Edited

Stephen, actually you can add $event.preventDefault() when you call you onclick() method that will prevent the submit