Bug fixing

This commit is contained in:
Alexei Anoshenko 2024-12-08 21:11:46 +03:00
parent 86e58ef33a
commit 0e0b73fdb9
1 changed files with 1 additions and 1 deletions

View File

@ -633,6 +633,7 @@ function listItemClickEvent(element, event) {
const list = element.parentNode.parentNode
if (list) {
const number = getListItemNumber(element.id)
selectListItem(list, element)
sendMessage("itemClick{session=" + sessionID + ",id=" + list.id + ",number=" + number + "}");
}
}
@ -692,7 +693,6 @@ function selectListItem(element, item) {
if (number != undefined) {
message = "itemSelected{session=" + sessionID + ",id=" + element.id + ",number=" + number + "}";
}
if (item.scrollIntoViewIfNeeded) {
item.scrollIntoViewIfNeeded()