Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
fix onchange event
Browse files Browse the repository at this point in the history
  • Loading branch information
iliazeus committed Jun 12, 2023
1 parent 2715f3f commit 44dd616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export async function register(options: Options) {
updateEmojiInContainer().catch((e) => console.log(e));
}

_input.onpaste = _input.onsubmit = () => {
_input.onpaste = _input.onchange = () => {
setTimeout(() => updateEmojiInContainer().catch((e) => console.log(e)), 0);
};

Expand Down

0 comments on commit 44dd616

Please sign in to comment.