mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
bugfix
This commit is contained in:
parent
a2fc549161
commit
acbebcec81
@ -124,7 +124,7 @@ export class AnchorNav extends React.Component<AnchorNavProps> {
|
||||
scrollToSection(key: string | number) {
|
||||
this.fromSelect = true;
|
||||
const node = find(this.sections, item => item.key === key)?.element;
|
||||
node?.scrollIntoView({behavior: 'smooth'});
|
||||
node?.scrollIntoView?.({behavior: 'smooth'});
|
||||
}
|
||||
|
||||
handleSelect(key: string | number) {
|
||||
|
Loading…
Reference in New Issue
Block a user