autoload
Cory LaViska 2023-03-02 11:43:00 -05:00
rodzic 051baa4ff5
commit d88d9fc81a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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);
});