Apply props to all link variants when possible
This commit is contained in:
parent
d98de363eb
commit
e7de4b953f
@ -80,13 +80,19 @@ export class Link extends React.Component<LinkProps, LinkState> {
|
|||||||
);
|
);
|
||||||
case LinkType.ReactScroll:
|
case LinkType.ReactScroll:
|
||||||
return (
|
return (
|
||||||
<span ref={input => (this._outerReactScrollSpan = input)}>
|
<span
|
||||||
|
ref={input => (this._outerReactScrollSpan = input)}
|
||||||
|
onMouseOver={this.props.onMouseOver}
|
||||||
|
onMouseEnter={this.props.onMouseEnter}
|
||||||
|
onMouseLeave={this.props.onMouseLeave}
|
||||||
|
>
|
||||||
<ScrollLink
|
<ScrollLink
|
||||||
to={this.props.to}
|
to={this.props.to}
|
||||||
offset={0}
|
offset={0}
|
||||||
hashSpy={true}
|
hashSpy={true}
|
||||||
duration={constants.DOCS_SCROLL_DURATION_MS}
|
duration={constants.DOCS_SCROLL_DURATION_MS}
|
||||||
containerId={this.props.containerId}
|
containerId={this.props.containerId}
|
||||||
|
className={this.props.className}
|
||||||
style={styleWithDefault}
|
style={styleWithDefault}
|
||||||
>
|
>
|
||||||
<span onClick={this._onClickPropagateClickEventAroundScrollLink.bind(this)}>
|
<span onClick={this._onClickPropagateClickEventAroundScrollLink.bind(this)}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user