update docs comment

This commit is contained in:
Cory LaViska
2023-01-10 15:04:53 -05:00
parent e2d2f5d670
commit 1fbb809057
7 changed files with 7 additions and 7 deletions

View File

@@ -373,7 +373,7 @@ export default class SlInput extends ShoelaceElement implements ShoelaceFormCont
return this.input.reportValidity();
}
/** Sets a custom validation message. If `message` is not empty, the field will be considered invalid. */
/** Sets a custom validation message. Pass an empty string to restore validity. */
setCustomValidity(message: string) {
this.input.setCustomValidity(message);
this.formControlController.updateValidity();