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 + "}");
|
||||
}
|
||||
}
|
||||
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue