fix:Nav组件折叠/展开时阻止事件冒泡 (#3247)

This commit is contained in:
Allen 2021-12-22 16:33:28 +08:00 committed by GitHub
parent 2db00c441c
commit ce25d8a89f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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