-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[breadcrumb] target设置无效 #3634
Labels
Comments
👋 @JunQiGenYuan,感谢给 TDesign 提出了 issue。 |
|
uyarn
added
to be published
to be published
and removed
to be published
to be published
labels
Nov 23, 2023
👋 @JunQiGenYuan,感谢给 TDesign 提出了 issue。 |
|
PR is welcome |
16 tasks
fixed 1.7.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tdesign-vue 版本
latest
重现链接
No response
重现步骤
<t-breadcrumb :max-item-width="'150'" class="pb-4" > <t-breadcrumbItem href="/xxxxxx" target="_parent" > xxxx </t-breadcrumbItem> <t-breadcrumbItem>xxxxx</t-breadcrumbItem> </t-breadcrumb>
期望结果
能识别target,与默认的a标签一样行为,如触发父窗口跳转等。
实际结果
target无论怎么设置,都只跳转当前窗口或iframe
框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
源码位置:https://github.com/Tencent/tdesign-vue-next/blob/develop/src/breadcrumb/breadcrumb-item.tsx#L67
只设置了href、没有设置route,不应该阻止默认行为,把e.preventDefault();移动到 if (props.href) 的else等执行即可
The text was updated successfully, but these errors were encountered: