|
|
@@ -22,8 +22,9 @@ const EmojiPicker: FC<Props> = (props: Props) => {
|
|
|
|
|
|
// Set search emoji input and trigger search
|
|
|
const searchEmoji = () => {
|
|
|
+ const input = window.document.querySelector('[id^="emoji-mart-search"]') as HTMLInputElement;
|
|
|
if (emojiSearchText !== null) {
|
|
|
- const input = window.document.querySelector('[id^="emoji-mart-search"]') as HTMLInputElement;
|
|
|
+
|
|
|
const valueSetter = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, 'value')?.set;
|
|
|
valueSetter?.call(input, emojiSearchText);
|
|
|
const event = new Event('input', { bubbles: true });
|