79114267

Date: 2024-10-22 13:22:54
Score: 0.5
Natty:
Report link

Finally, the problem was in this part of the code:

 <BootstrapSelect
            TItem="Models.DropdownItem<String>"
            Data="@positionsItems"
            @bind-Value="model!.Position"
            TextField="@((item) => item.Value)"
            ValueField="@((item) => item.Key.ToString())"
            TType="Biwenger.Enums.Positions">
        </BootstrapSelect>

It seems that BootsatrpSelect doesn't work well with Generic types or Enums. Binded it to a int variable and the problem dissapears.

Thank you all for your feedback

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Rafael Osuna Dominguez