-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add form validation docs #178
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few tiny suggestions, otherwise this is great! 🤩
<enhance-form | ||
action="/books/${book.key}" | ||
method="POST"> | ||
${'' /* 3. Overall form error messages */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering about the ${ '' … }
comments here — were //
comments not working?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is inside a block of HTML I did not want the comment to be rendered as an HTML comment. So I opted for the JS comment inside the literal so it doesn't render to the markup. But I agree it looks weird. If you think I should go with HTML comments here that would be fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohhh, clever! I hadn't thought of that. Nice!
@ryanbethel Just a li'l typo then good to go! :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
Document form validation patterns and the problems loop