From d88d9fc81aca30f2ebe29681906e5a936b70109a Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Thu, 2 Mar 2023 11:43:00 -0500 Subject: [PATCH] update example --- docs/components/radio-group.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/components/radio-group.md b/docs/components/radio-group.md index 06163985..20d99d82 100644 --- a/docs/components/radio-group.md +++ b/docs/components/radio-group.md @@ -175,7 +175,7 @@ Use the `setCustomValidity()` method to set a custom validation message. This wi const errorMessage = 'You must choose the last option'; // Set initial validity as soon as the element is defined - customElements.whenDefined('sl-radio-group').then(() => { + customElements.whenDefined('sl-radio').then(() => { radioGroup.setCustomValidity(errorMessage); });