diff --git a/packages/components/src/components/textarea/textarea.ts b/packages/components/src/components/textarea/textarea.ts index e046d9e1f..a2519fbc2 100644 --- a/packages/components/src/components/textarea/textarea.ts +++ b/packages/components/src/components/textarea/textarea.ts @@ -307,7 +307,6 @@ export default class SdTextarea extends SolidElement implements SolidFormControl // States const hasLabel = this.label ? true : !!slots['label']; const hasHelpText = this.helpText ? true : !!slots['helpText']; - const isInvalid = !this.checkValidity(); // Hierarchy of textarea states: const textareaState = this.disabled @@ -406,7 +405,7 @@ export default class SdTextarea extends SolidElement implements SolidFormControl enterkeyhint=${ifDefined(this.enterkeyhint)} inputmode=${ifDefined(this.inputmode)} aria-describedby="help-text invalid-message" - ?aria-invalid=${isInvalid} + aria-invalid=${this.showInvalidStyle} @change=${this.handleChange} @input=${this.handleInput} @invalid=${this.handleInvalid}