From 1dcc66303908f93e00115490d06a2275e615fc77 Mon Sep 17 00:00:00 2001 From: Radhi Fadlillah Date: Mon, 26 Feb 2018 17:31:20 +0700 Subject: [PATCH] Fix delete all not updated --- view/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/view/index.html b/view/index.html index 549ec5f..cd95ce3 100644 --- a/view/index.html +++ b/view/index.html @@ -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) {