Browse Source

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

close #11687
pull/11661/merge
Vitaliy Mazurenko 6 years ago
committed by 偏右
parent
commit
a14e476eeb
  1. 3
      components/anchor/Anchor.tsx

3
components/anchor/Anchor.tsx

@ -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