Nikola Milovic
10/06/2021, 3:54 PMreact-hook-form
wrapper
form {
attrs.onSubmitFunction = {
console.log("Submit")
}
attrs.onSubmit = {
console.log("Submit")
}
input(classes = defaultButtonStyle, type = InputType.submit) {
}
}
Tried it with intput of type submit and with button of type submit, both refresh the page and nothing gets logged in the console. (Prevent default for button did work for preventing the refresh but it didn't log anything)turansky
10/06/2021, 4:10 PM