Replies: 1 comment
-
We try to follow the same conventions as native form controls. On one hand, reiterating everything you can find about forms on, say, MDN will lead to massive bloat in our docs. On the other, we are currently making an assumption that you already know how HTML forms work. Thanks for the feedback. We'll consider how to update the docs in a way that strikes the right balance! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
The current Form Controls documentation states:
I have spent the last couple hours trying to figure out why my form setup wouldn't "just work" and after finding no issues opened here and stripping the issue down from my stack to a static HTML page, finally dug into the source code to see how this was designed to work.
The code that should make this "just work" is in /src/internal/form.ts
There are several criteria that must be met for the form elements to work that are not documented on the Form Controls page:
The part I had been missing was the
name
attribute, and I see that its relationship to form data is documented in thesl-input
component's "Properties" section, but it would be helpful to outline those requirements more explicitly on the Form Controls page as wellBeta Was this translation helpful? Give feedback.
All reactions