Form Input Select missing default name attribute

I would not really say this is a bug as it is easy to solve, but just inconvenient.

If I add a form on my page, then a Text Input component from the UI vs. a Select component from the UI

<input id="text1" name="text1" type="text" class="form-control">

<select id="select1" class="form-control">
  <option value="1">Option One</option>
  <option value="2">Option Two</option>
  <option value="3">Option Three</option>
</select>

The text input gives an id="" as well as a name="" while a select only gives an id="" and no name="", if I try run a server action with the default settings the form will not send the value of the select until I add a name to it.

As I say easy enough to fix, but just causes debugging, while if it already had a name as default, I would auto change it while I am altering other default id properties.

This is similar for text area, checkbox group, radio group, which all have no name attribute, while text input, Checkbox control, Radio control all do have a default name attribute.

Could a default name be added to the ones that need it for Server Actions possibly, unless there is a reason they aren’t?

Pretty Please.

Community Page
Last updated: