update docs comment

pull/1120/head^2
Cory LaViska 2023-01-10 15:04:53 -05:00
rodzic e2d2f5d670
commit 1fbb809057
7 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -220,7 +220,7 @@ export default class SlButton extends ShoelaceElement implements ShoelaceFormCon
return true;
}
/** 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) {
if (this.isButton()) {
(this.button as HTMLButtonElement).setCustomValidity(message);

Wyświetl plik

@ -687,7 +687,7 @@ export default class SlColorPicker extends ShoelaceElement implements ShoelaceFo
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();

Wyświetl plik

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

Wyświetl plik

@ -236,7 +236,7 @@ export default class SlRange 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();

Wyświetl plik

@ -608,7 +608,7 @@ export default class SlSelect extends ShoelaceElement implements ShoelaceFormCon
return this.valueInput.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.valueInput.setCustomValidity(message);
this.formControlController.updateValidity();

Wyświetl plik

@ -145,7 +145,7 @@ export default class SlSwitch extends ShoelaceElement implements ShoelaceFormCon
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();

Wyświetl plik

@ -261,7 +261,7 @@ export default class SlTextarea extends ShoelaceElement implements ShoelaceFormC
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();