typo stopPreventDefault -> stopPropagation (#5093)

* typo stopPreventDefault -> stopPropagation

* remove
This commit is contained in:
陆离 2017-02-28 18:43:06 +08:00 committed by Wei Zhu
parent b12d8e3d38
commit 8eec86085b

View File

@ -73,7 +73,6 @@ export default class AnchorLink extends React.Component<AnchorLinkProps, any> {
if (onClick) {
onClick(href, this._component);
} else {
e.stopPreventDefault();
const scrollToFn = anchorHelper ? anchorHelper.scrollTo : scrollTo;
scrollToFn(href, this.props.offsetTop);
}