Remove ref:suppressField

This commit is contained in:
Pranav K 2019-08-15 23:00:46 -07:00
parent a982704f63
commit 029e455e7b
No known key found for this signature in database
GPG Key ID: 1963DA6D96C3057A
4 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
@using Microsoft.JSInterop
@inject IJSRuntime JSRuntime
<input @ref="myInput" @ref:suppressField value="Value set during render" />
<input @ref="myInput" value="Value set during render" />
@code {
ElementReference myInput;

View File

@ -11,7 +11,7 @@
@if (_toggleCapturedComponentPresence)
{
<div id="child-component">
<CounterComponent @ref="_myChildCounter" @ref:suppressField />
<CounterComponent @ref="_myChildCounter" />
</div>
}

View File

@ -17,7 +17,7 @@
@if (_toggleCapturedElementPresence)
{
<input id="capturedElement" @ref="_myInput" @ref:suppressField />
<input id="capturedElement" @ref="_myInput" />
}
<button @onclick="MakeInteropCall">Click me</button>
<label>

View File

@ -18,7 +18,7 @@
<p>
Value set via JS interop call:
<input id="val-set-by-interop" @ref="@myElem" @ref:suppressField />
<input id="val-set-by-interop" @ref="@myElem" />
</p>
@code {