Skip to content

Commit

Permalink
fix: sd-textarea aria-invalid value
Browse files Browse the repository at this point in the history
  • Loading branch information
paulovareiro29 committed Nov 14, 2024
1 parent c89fbe7 commit ce37a9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/components/src/components/textarea/textarea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit ce37a9c

Please sign in to comment.