Fix delete all not updated

This commit is contained in:
Radhi Fadlillah 2018-02-26 17:31:20 +07:00
parent 81de2951b9
commit 1dcc663039

View file

@ -367,8 +367,9 @@
var scrollIdx = smallestIndex === 1 ? 1 : smallestIndex - 1;
app.$nextTick(function () {
var el = app.$refs['bookmark-' + scrollIdx];
if (el) el[0].scrollIntoView();
var el = app.$refs['bookmark-' + smallestIndex][0];
if (el) el.scrollIntoView();
else window.scrollTo(0, 0);
});
})
.catch(function (error) {