Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

0
Votes
When we render the DropDownList component with pre-select value, EditContext.IsModified() returns true. But this property should returns true when we affect the component.

  <EditForm Model="@_weatherForecast" OnValidSubmit="OnValidSubmit">

                    <DataAnnotationsValidator />

                    <div class="form-row">

                        <div class="form-group col">                           

                            <SfDropDownList TValue="string" TItem="string" DataSource="possibleWeatherForecasts" @bind-Value="_weatherForecast.Weather"></SfDropDownList>

                        </div>

                    </div>

                    <div class="e-footer-content">

                        <SfButton Content="OK" HtmlAttributes=@(new Dictionary<string, object>() { { "type", "submit" } }) />

                    </div>

                </EditForm>

  private void OnValidSubmit(EditContext editContext)

    {

        _wasModified = editContext.IsModified();

        _isDialogVisible = false;

    }