Skip to content

Commit 8c2c11a

Browse files
committed
This means we don't need to listen for empty in particular.
1 parent 7d7067e commit 8c2c11a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/lib/enhancers/github/GitHubPrAppendEnhancer.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,6 @@ export class GitHubPrAppendEnhancer
7777
placeholder: "Add your comment here...",
7878
})
7979
)
80-
const listenForEmpty = new MutationObserver(() => {
81-
if (textArea.value === "") {
82-
overtype.updatePreview()
83-
}
84-
})
85-
listenForEmpty.observe(textArea, { attributes: true, characterData: true })
8680
return overtype
8781
}
8882

0 commit comments

Comments
 (0)