Skip to content

Cannot bind value of element and have onchange event fire. Can only have either or. #15882

@haasey

Description

@haasey

<select id="cboLocations" bind="@uiLocation" onchange="@loadforms">
<option value="A">A_</option>
<option value="B">B_</option>
<option value="C">C_</option>
<option value="D">D_</option>
</select>

@functions {
string uiLocation =""
protected async void LoadForms()
{
// does an async call relying on the value of uiLocation variable
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions