Skip to content

Commit

Permalink
fix: redispatch events in the textarea component (#190)
Browse files Browse the repository at this point in the history
Co-authored-by: Sara.Parsaee <Sara.Parsaee@Tapsi.cab>
  • Loading branch information
saraparsa13 and Sara.Parsaee authored Sep 1, 2024
1 parent b914951 commit 98b98cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/textarea/textarea.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import { TemplateResult, html } from 'lit';
import { live } from 'lit/directives/live.js';
import { Input } from '../input';
import { redispatchEvent } from '../utils/utils';

export class Textarea extends Input {
private redispatchEvent(event: Event) {
redispatchEvent(this, event);
}

protected renderInput(): TemplateResult {
return html`
<textarea
Expand All @@ -15,6 +20,7 @@ export class Textarea extends Input {
aria-invalid=${this.error}
aria-disabled=${this.disabled ? 'true' : 'false'}
@input=${this.handleInput}
@change=${this.redispatchEvent}
>
</textarea>
`;
Expand Down

0 comments on commit 98b98cd

Please sign in to comment.