These do not produce the correct html on first render.
They should add value="" to the select options element but they don't initially do it.
prop.Value("")vecty.Property("value", "")
I am using this as a workaround.
vecty.Attribute("value", "")
The problem this causes is that when the select item is used in a form and is specified as required, the form validation does not work unless the first option has value=""
These do not produce the correct html on first render. They should add
value=""
to the select options element but they don't initially do it.prop.Value("")
vecty.Property("value", "")
I am using this as a workaround.
vecty.Attribute("value", "")
The problem this causes is that when the select item is used in a form and is specified as required, the form validation does not work unless the first option has
value=""
You can see the impact here in the "try it yourself" page https://www.w3schools.com/tags/att_select_required.asp
This is what should be produced
This is what is initially produced
This is an example of the code I am using to produce the html