Skip to content

Commit 6a1e325

Browse files
eps1lonpwNN
andauthored
Reference select guide instead of documenting selected attribute (#3224)
Co-authored-by: 宋文强 <[email protected]>
1 parent 860a510 commit 6a1e325

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/docs/reference-dom-elements.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ The `onChange` event behaves as you would expect it to: whenever a form field is
5656

5757
### selected {#selected}
5858

59-
The `selected` attribute is supported by `<option>` components. You can use it to set whether the component is selected. This is useful for building controlled components.
59+
If you want to mark an `<option>` as selected, reference the value of that option in the `value` of its `<select>` instead.
60+
Check out ["The select Tag"](/docs/forms.html#the-select-tag) for detailed instructions.
6061

6162
### style {#style}
6263

0 commit comments

Comments
 (0)