I modified the default login of asp.net mvc 6 and wanted to add a dropdown-list with taghelper select but it seems like it produces a wrong output.
I added the select-taghelper-element so it looks like this:
<form asp-controller="Account" asp-action="Register" method="post" class="form-horizontal" role="form">
<div class="form-group">
<label asp-for="Tenant" class="col-md-2 control-label"></label>
<div class="col-md-10">
<select asp-for="Tenant" asp-items="ViewBag.Tenants" class="form-control" />
<span asp-validation-for="Tenant" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<button type="submit" class="btn btn-default">Register</button>
</div>
</div>
</form>
after adding the select-tag, the submit-button is not displayed anymore - the dropdown is displayed but contains no data, but using breakpoints Viewbag.Tenants contains data. When I remove the first div with the select-tag, the button is showing.
Any idea what here is wrong?