mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
fix:Nav组件折叠/展开时阻止事件冒泡 (#3247)
This commit is contained in:
parent
2db00c441c
commit
ce25d8a89f
@ -415,7 +415,10 @@ export class Navigation extends React.Component<
|
||||
/>
|
||||
) : hasSub ? (
|
||||
<span
|
||||
onClick={() => this.toggleLink(link)}
|
||||
onClick={e => {
|
||||
this.toggleLink(link);
|
||||
e.stopPropagation();
|
||||
}}
|
||||
className={cx('Nav-itemToggler', togglerClassName)}
|
||||
>
|
||||
<Icon icon="caret" className="icon" />
|
||||
|
Loading…
Reference in New Issue
Block a user