Skip to content

Commit

Permalink
typo stopPreventDefault -> stopPropagation (ant-design#5093)
Browse files Browse the repository at this point in the history
* typo stopPreventDefault -> stopPropagation

* remove
  • Loading branch information
RaoHai authored and yesmeck committed Feb 28, 2017
1 parent b12d8e3 commit 8eec860
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion components/anchor/AnchorLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8eec860

Please sign in to comment.