Skip to content

Commit c1c8cc2

Browse files
committed
Properly allow textarea
1 parent 59e4cb2 commit c1c8cc2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/markdown.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>Hi</p>

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ class RemoteInputElement extends HTMLElement {
3838
input.removeEventListener('input', this.debounceInputChange)
3939
}
4040

41-
get input(): ?HTMLInputElement {
41+
get input(): ?(HTMLInputElement | HTMLTextAreaElement) {
4242
const input = this.querySelector('input, textarea')
43-
return input instanceof HTMLInputElement ? input : null
43+
return input instanceof HTMLInputElement || input instanceof HTMLTextAreaElement ? input : null
4444
}
4545

4646
get resultsContainer(): ?HTMLElement {

0 commit comments

Comments
 (0)