Anchor component with affix=true doesn't work inside inner scrollable… (#11688)

close #11687
pull/11705/head
Vitaliy Mazurenko 7 years ago committed by 偏右
parent 859c18f7dd
commit a14e476eeb

@ -240,6 +240,7 @@ export default class Anchor extends React.Component<AnchorProps, any> {
affix,
showInkInFixed,
children,
getContainer,
} = this.props;
const { activeLink } = this.state;
@ -273,7 +274,7 @@ export default class Anchor extends React.Component<AnchorProps, any> {
);
return !affix ? anchorContent : (
<Affix offsetTop={offsetTop}>
<Affix offsetTop={offsetTop} target={getContainer}>
{anchorContent}
</Affix>
);

Loading…
Cancel
Save