mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
bugfix
This commit is contained in:
parent
1673f76842
commit
8f70ab8d8a
@ -86,6 +86,9 @@ export class AnchorNav extends React.Component<AnchorNavProps> {
|
|||||||
this.sections.forEach(item => {
|
this.sections.forEach(item => {
|
||||||
this.observer.observe(item.element);
|
this.observer.observe(item.element);
|
||||||
});
|
});
|
||||||
|
if (this.props.active) {
|
||||||
|
this.scrollToSection(this.props.active);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
|
Loading…
Reference in New Issue
Block a user