diff --git a/index.js b/index.js index ce5f6a5..56719b0 100644 --- a/index.js +++ b/index.js @@ -63,7 +63,9 @@ function Framework (opts) { bus.on('pushState', function (href) { if (href) window.history.pushState({}, null, href) bus.emit('render') - scrollIntoView() + setTimeout(function () { + scrollIntoView() + }, 0) }) if (opts.href !== false) {