Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Commit

Permalink
Merge tag '0.0.4' into dev
Browse files Browse the repository at this point in the history
0.0.4
  • Loading branch information
ipatate committed Aug 19, 2017
2 parents 51e641f + f4af648 commit 43f6d48
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
@@ -0,0 +1 @@
language: node_js
2 changes: 2 additions & 0 deletions README.md
@@ -1,3 +1,5 @@
[![Build Status](https://travis-ci.org/ipatate/react-router-scroll-memory.svg?branch=master)](https://travis-ci.org/ipatate/react-router-scroll-memory)

### Simple react component to keep the scroll of the page and to restore it if the user clicks on the back button of its browser

I did this package because I was frustrated that the new react router (4) does not restore the scroll when I click on the back button of my browser. By default, the component execute window.scrollTo(0,0), if the url not exist in memory. It only stores the last 2 url.
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "react-router-scroll-memory",
"version": "0.0.3",
"version": "0.0.4",
"description": "Simple react component to keep the scroll of the page and to restore it if the user clicks on the back button of its browser",
"main": "./dist/bundle.js",
"scripts": {
Expand Down

0 comments on commit 43f6d48

Please sign in to comment.