Skip to content

Commit f129d0b

Browse files
authored
fix(anchor): fix target bug (#339)
Signed-off-by: yuda <yuda@megazone.com>
1 parent 7ca374c commit f129d0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inputs/anchors/PAnchor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const props = withDefaults(defineProps<AnchorProps>(), {
6767
6868
const validateTarget = () => {
6969
if (props.disabled) return '_self';
70-
if (props.iconName === 'ic_external-link' && props.hideIcon) return '_blank';
70+
if (props.iconName === 'ic_external-link' && !props.hideIcon) return '_blank';
7171
return '_self';
7272
};
7373
const anchorRef = ref<HTMLElement|null>(null);

0 commit comments

Comments
 (0)