mirror of https://github.com/anoshenko/rui.git
Bug fixing
This commit is contained in:
parent
86e58ef33a
commit
0e0b73fdb9
|
@ -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 + "}");
|
||||
}
|
||||
}
|
||||
|
@ -693,7 +694,6 @@ function selectListItem(element, item) {
|
|||
message = "itemSelected{session=" + sessionID + ",id=" + element.id + ",number=" + number + "}";
|
||||
}
|
||||
|
||||
|
||||
if (item.scrollIntoViewIfNeeded) {
|
||||
item.scrollIntoViewIfNeeded()
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue