Closed Dreamescaper closed 1 year ago
It turns out that the issue is not because of generator itself, it's because currently all value-type properties are mapped as nullables. While it would be great to change that (which would be a huge breaking change), it's out of scope of generator.
It is still possible to use @bind syntax if it is mapped to a non-nullable property.
Currently it generates them like this:
Because the types do not match,
@bind-SelectedIndex
is not allowed.