ISSUE: Default button behavior doesn't match docs #208
nanderson11
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the docs here, it says that button has a default type of 'button'. In the code here though, it looks like button defaults to no type at all.
So
html()->button('Add Another Item')
yields HTML like this<button>Add Another Item</button>
, when it should be<button type="button">Add Another Item</button>
(if the documentation is correct). The type attribute matters because if the HTML is missing the type attribute, it defaults to submit.Beta Was this translation helpful? Give feedback.
All reactions