Scroll page into view when selected item is outside view

This commit is contained in:
Peter Stuifzand 2020-11-01 21:04:58 +01:00
parent ea5f0dbe26
commit b94611b160

View File

@ -507,6 +507,10 @@ function editor(root, inputData, options) {
trigger('change') trigger('change')
} }
_.defer(() => {
$('.list-item.selected')[0].scrollIntoView({behavior: "smooth", block: "nearest"})
})
cursor.resetLastMove() cursor.resetLastMove()
return false return false