From 1b0d16d91266c9a564f43f2dc5e9159fccdc946b Mon Sep 17 00:00:00 2001 From: Robert Haken Date: Tue, 5 Mar 2024 12:07:19 +0100 Subject: [PATCH] Blazor-DataBinding-FormsXrefFix (#31968) --- .vscode/settings.json | 5 ++++- aspnetcore/blazor/components/data-binding.md | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 3c34afcb09..08151a9fd5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -31,5 +31,8 @@ "MD025": { "front_matter_title": "" } - } + }, + "githubPullRequests.ignoredPullRequestBranches": [ + "main" + ] } diff --git a/aspnetcore/blazor/components/data-binding.md b/aspnetcore/blazor/components/data-binding.md index c7182ccac7..a1957726d4 100644 --- a/aspnetcore/blazor/components/data-binding.md +++ b/aspnetcore/blazor/components/data-binding.md @@ -492,7 +492,7 @@ For the `oninput` event (`@bind:event="oninput"`), a value reversion occurs afte * Don't use the `oninput` event. Use the default `onchange` event, where an invalid value isn't reverted until the element loses focus. * Bind to a nullable type, such as `int?` or `string` and either use `@bind:get`/`@bind:set` modifiers (described earlier in this article) or [bind to a property with custom `get` and `set` accessor logic](#binding-to-a-property-with-c-get-and-set-accessors) to handle invalid entries. -* Use a [form validation component](xref:blazor/forms/validation), such as or . Form validation components provide built-in support to manage invalid inputs. Form validation components: +* Use an [input component](xref:blazor/forms/input-components), such as or , with [form validation](xref:blazor/forms/validation). Input components together with form validation components provide built-in support to manage invalid inputs: * Permit the user to provide invalid input and receive validation errors on the associated . * Display validation errors in the UI without interfering with the user entering additional webform data.