fix: 修复nav组件横向模式下,父级无法点击问题 (#10712)

* fix: 修复nav组件横向模式下,父级无法点击问题

* 更新快照

---------

Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
qkiroc 2024-08-05 11:55:06 +08:00 committed by GitHub
parent 0483504c67
commit 301f435124
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -215,6 +215,7 @@ export class SubMenu extends React.Component<SubMenuProps> {
data-depth={depth} data-depth={depth}
onDragStart={onDragStart?.(link)} onDragStart={onDragStart?.(link)}
{...testIdBuilder?.getTestId()} {...testIdBuilder?.getTestId()}
href={link?.to}
> >
{renderContent()} {renderContent()}
</a> </a>

View File

@ -441,6 +441,7 @@ exports[`Renderer:Nav with defer 1`] = `
class="cxd-Nav-Menu-item-link" class="cxd-Nav-Menu-item-link"
data-depth="1" data-depth="1"
data-id="3" data-id="3"
href="?cat=3"
> >
<span <span
class="cxd-Nav-Menu-item-label cxd-Nav-Menu-item-label-subTitle" class="cxd-Nav-Menu-item-label cxd-Nav-Menu-item-label-subTitle"
@ -1018,6 +1019,7 @@ exports[`Renderer:Nav with itemActions 1`] = `
class="cxd-Nav-Menu-item-link" class="cxd-Nav-Menu-item-link"
data-depth="1" data-depth="1"
data-id="3" data-id="3"
href="?cat=3"
> >
<span <span
class="cxd-Nav-Menu-item-label cxd-Nav-Menu-item-label-subTitle" class="cxd-Nav-Menu-item-label cxd-Nav-Menu-item-label-subTitle"
@ -1418,6 +1420,7 @@ exports[`Renderer:Nav with itemActions 2`] = `
class="cxd-Nav-Menu-item-link" class="cxd-Nav-Menu-item-link"
data-depth="1" data-depth="1"
data-id="3" data-id="3"
href="?cat=3"
> >
<span <span
class="cxd-Nav-Menu-item-dragBar" class="cxd-Nav-Menu-item-dragBar"