Replies: 1 comment 3 replies
-
If you don't use the Not sure what you mean by "consistent button component for all interactions". |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I could get this somehow working with giving the form
id='my-form'
with following markup as the clickable div:But now, it tries to submit immediately on click not letting the browser do some validations (e.g., are all required fields filled, is the email address an email, etc.). And the json api response is shown in the browser, so the browser somehow redirects to json response for whatever reason. 😶
Is there any smarter way?
Background: I want to have one consistent button component for all interactions, hence I need a
<div />
.Beta Was this translation helpful? Give feedback.
All reactions