|
|
@@ -23,7 +23,6 @@ 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;
|
|
|
- let emojiList;
|
|
|
if (emojiSearchText !== null) {
|
|
|
|
|
|
const valueSetter = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, 'value')?.set;
|
|
|
@@ -31,18 +30,7 @@ const EmojiPicker: FC<Props> = (props: Props) => {
|
|
|
const event = new Event('input', { bubbles: true });
|
|
|
input.dispatchEvent(event);
|
|
|
input.focus();
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
- const emojiCategoryList = window.document.querySelector('.emoji-mart-category-list');
|
|
|
-
|
|
|
- ['keyup', 'focus'].forEach((event) => {
|
|
|
- input.addEventListener(event, () => {
|
|
|
- emojiList = window.document.querySelectorAll('.emoji-mart-category:not([style*="display: none"]) > .emoji-mart-category-list > li');
|
|
|
- });
|
|
|
- });
|
|
|
- console.log(emojiList);
|
|
|
-
|
|
|
};
|
|
|
|
|
|
const selectEmoji = (emoji) => {
|