mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 19:19:26 +08:00
typo stopPreventDefault -> stopPropagation (#5093)
* typo stopPreventDefault -> stopPropagation * remove
This commit is contained in:
parent
b12d8e3d38
commit
8eec86085b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user