This commit is contained in:
parent
246d4d04f5
commit
681a8363a2
1 changed files with 1 additions and 1 deletions
|
@ -523,7 +523,7 @@ export const openEmojiPanel = (id: string, type: "doc" | "notebook" | "av", posi
|
|||
if (target.classList.contains("emojis__type")) {
|
||||
const titleElement = emojisContentElement.querySelector(`[data-type="${target.getAttribute("data-type")}"]`) as HTMLElement;
|
||||
if (titleElement) {
|
||||
const previousIndex = titleElement.previousElementSibling ? titleElement.previousElementSibling.getAttribute("data-index") : null;
|
||||
const previousIndex = titleElement.previousElementSibling?.getAttribute("data-index");
|
||||
const index = titleElement.nextElementSibling.getAttribute("data-index");
|
||||
|
||||
if (previousIndex) {
|
||||
|
|
Loading…
Add table
Reference in a new issue