Skip to content

Commit f03abe1

Browse files
committed
bump release 5.0.1
1 parent 95b03af commit f03abe1

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
## master (unreleased)
22

3+
## 5.0.1
4+
5+
- Fix a state bug introduced on release `5.0.0`
6+
- `animateScroll` is now asynchronous, thanks to @xehpuk PR
7+
38
## 5.0.0
49

510
- Add support for React 16.3.x new API

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ _afterAnimate = () => {
164164
* Jean Chung <> [@jeanchung](https://github.com/jeanchung)
165165
* Chua Kang Ming <> [@kambing86](https://github.com/kambing86)
166166
* Benjamin MICHEL <> [@SBRK](https://github.com/SBRK)
167+
* [@xehpuk](https://github.com/xehpuk)
167168
168169
## Contributing
169170

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-scrollchor",
3-
"version": "5.0.0",
3+
"version": "5.0.1",
44
"description": "A React component for scroll to #hash links with smooth animations",
55
"files": [
66
"lib"

src/scrollchor.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default class Scrollchor extends React.Component {
6161

6262
return !this.props.children
6363
? null
64-
: <a {...props} href={'#' + this._to} onClick={this._handleClick} />;
64+
: <a {...props} href={'#' + this.state.to} onClick={this._handleClick} />;
6565
}
6666
}
6767

0 commit comments

Comments
 (0)