Skip to content

Commit

Permalink
fix(components): remove deprecated dom mutation event
Browse files Browse the repository at this point in the history
Signed-off-by: Cory Rylan <cory@coryrylan.com>
  • Loading branch information
coryrylan committed Jan 3, 2024
1 parent 0b7f674 commit b0409a7
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export class InteractionTextChangeController<T extends ReactiveElement> implemen

async hostConnected() {
await this.host.updateComplete;
this.host.addEventListener('DOMCharacterDataModified', () => this.#dispatch());
this.#observer = new MutationObserver(() => this.#dispatch());
this.#observer.observe(this.host, { characterData: true, childList: true });
}
Expand Down

0 comments on commit b0409a7

Please sign in to comment.