From 36be16b6408d6791ca15120be5bcf944a11c41ca Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Mon, 22 Jun 2020 17:27:02 +0100 Subject: [PATCH] Fix binding , but that's a limit in the representational power of HTML. + element.value = value || ''; +} diff --git a/src/Components/test/E2ETest/Tests/BindTest.cs b/src/Components/test/E2ETest/Tests/BindTest.cs index 70fc700e89..47f24f7c4b 100644 --- a/src/Components/test/E2ETest/Tests/BindTest.cs +++ b/src/Components/test/E2ETest/Tests/BindTest.cs @@ -219,6 +219,7 @@ namespace Microsoft.AspNetCore.Components.E2ETest.Tests // https://github.com/dotnet/aspnetcore/issues/17735 target.SelectByText("Empty value"); Browser.Equal(string.Empty, () => boundValue.Text); + Browser.Equal("Empty value", () => target.SelectedOption.Text); } [Fact] @@ -237,6 +238,7 @@ namespace Microsoft.AspNetCore.Components.E2ETest.Tests // https://github.com/dotnet/aspnetcore/issues/17735 target.SelectByText("Empty value"); Browser.Equal(string.Empty, () => boundValue.Text); + Browser.Equal("Empty value", () => target.SelectedOption.Text); } [Fact] diff --git a/src/Components/test/testassets/BasicTestApp/BindCasesComponent.razor b/src/Components/test/testassets/BasicTestApp/BindCasesComponent.razor index fafd59d49b..8780e1c133 100644 --- a/src/Components/test/testassets/BasicTestApp/BindCasesComponent.razor +++ b/src/Components/test/testassets/BasicTestApp/BindCasesComponent.razor @@ -241,7 +241,7 @@