Skip to content

Commit 98b98cd

Browse files
saraparsa13Sara.Parsaee
and
Sara.Parsaee
authored
fix: redispatch events in the textarea component (#190)
Co-authored-by: Sara.Parsaee <Sara.Parsaee@Tapsi.cab>
1 parent b914951 commit 98b98cd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/textarea/textarea.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
import { TemplateResult, html } from 'lit';
22
import { live } from 'lit/directives/live.js';
33
import { Input } from '../input';
4+
import { redispatchEvent } from '../utils/utils';
45

56
export class Textarea extends Input {
7+
private redispatchEvent(event: Event) {
8+
redispatchEvent(this, event);
9+
}
10+
611
protected renderInput(): TemplateResult {
712
return html`
813
<textarea
@@ -15,6 +20,7 @@ export class Textarea extends Input {
1520
aria-invalid=${this.error}
1621
aria-disabled=${this.disabled ? 'true' : 'false'}
1722
@input=${this.handleInput}
23+
@change=${this.redispatchEvent}
1824
>
1925
</textarea>
2026
`;

0 commit comments

Comments
 (0)