下面是我的代码,一个 fluenteditform 表单。提交后,系统提示我填写了字段,但仍然需要填写。我的代码有什么问题?
@page "/movieform"
@using Assignment10.Entities
@using System.ComponentModel.DataAnnotations
<h3>MovieForm</h3>
<FluentCard>
<FluentEditForm FormName="MovieForm" Model="@movie">
<DataAnnotationsValidator />
<FluentValidationSummary />
<FluentGrid>
<FluentGridItem xs="12">
<FluentTextField Name="MovieNameField" Id="movieNameField" @bind-Value="movie.MovieName" Label="Name: " Required/>
<ValidationMessage For="@(() => movie.MovieName)" />
</FluentGridItem>
<FluentGridItem xs="12">
<FluentTextField Name="MoviePublisherField" Id="moviePublisherField" @bind-Value="movie.Publisher" Label="Publisher: " Required/>
<ValidationMessage For="@(() => movie.Publisher)" />
</FluentGridItem>
<FluentGridItem xs="12" >
<FluentTextField Name="MovieDescriptionField" Id="movieDescriptionField" @bind-Value="movie.MovieDescription" Label="Description: " Required/>
<ValidationMessage For="@(() => movie.MovieDescription)" />
</FluentGridItem>
<FluentGridItem xs="12" >
<FluentButton Type="ButtonType.Submit" Appearance="Appearance.Accent">Submit</FluentButton>
</FluentGridItem>
</FluentGrid>
</FluentEditForm>
</FluentCard>
@code {
private Movie movie = new Movie();
}