Commit 6b18e34f authored by nkzawa's avatar nkzawa

link: tweak scroll condition

parent b8291abe
......@@ -36,7 +36,7 @@ export default class Link extends Component {
Router.push(route, url)
.then((success) => {
if (!success) return
if (scroll !== false) window.scrollTo(0, 0)
if (scroll) window.scrollTo(0, 0)
})
.catch((err) => {
if (this.props.onError) this.props.onError(err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment