You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Binding using the "bind" keyword has been broken in the preview 6 daily builds since May 30. Using the @bind syntax works, but I can't find anything suggesting this should be the case
To Reproduce
Using current preview 6 daily (as below)
dotnet new blazorserverside
edit counter.razor as follows ...
@page "/counter"
<input type="text" @bind=A /><br/>
<input type="text" bind="@B" /><br/>
<input type="text" value="@C" /><br/>
Current value of A is @A <br/>
Current value of B is @B <br/>
Current value of C is @C <br/>
@code {
string A="A";
string B="B";
string C="C";
}
dotnet run
navigate to counter page
change the values of the three textboxes
Expected behavior
strings A B and C all get updated when the bound textbox is updated
Runtime Environment:
OS Name: Windows
OS Version: 10.0.18362
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\3.0.100-preview6-012135\
Host (useful for support):
Version: 3.0.0-preview6-27730-01
Commit: 63abc77da6
Hi @glent1 - this is part of the directive attributes work that's shipping in 3.0 preview 6 / VS 16.2-preview 2. You can read more about this here #6364
Thanks for reaching out, this was a good reminder to me to update the issue with more details.
Excellent - thanks for taking the time to reply. I guess if I'd known that they were called "directives", I'd have had more luck searching for the change!
Describe the bug
Binding using the "bind" keyword has been broken in the preview 6 daily builds since May 30. Using the
@bind
syntax works, but I can't find anything suggesting this should be the caseTo Reproduce
Using current preview 6 daily (as below)
dotnet new blazorserverside
edit counter.razor as follows ...
dotnet run
navigate to counter page
change the values of the three textboxes
Expected behavior
strings A B and C all get updated when the bound textbox is updated
Actual behavior
Only A (the @Bind syntax) works correctly
Additional context
dotnet --info
.NET Core SDK (reflecting any global.json):
Version: 3.0.100-preview6-012135
Commit: 19761f8a5c
Runtime Environment:
OS Name: Windows
OS Version: 10.0.18362
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\3.0.100-preview6-012135\
Host (useful for support):
Version: 3.0.0-preview6-27730-01
Commit: 63abc77da6
.NET Core SDKs installed:
3.0.100-preview6-012135 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.0.0-preview6-19279-08 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.0.0-preview6-27729-07 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.0.0-preview6-27730-01 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.0.0-preview6-27730-01 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
The text was updated successfully, but these errors were encountered: