Skip to content

Commit dfdc0c9

Browse files
committed
[fix](@svelteui/core): remove target='_self' from button anchor behaviour
Using target=_self triggers a full page reload, which renders useless the svelte-kit page load logic ISSUES CLOSED: #501
1 parent 0ad7bc2 commit dfdc0c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelteui-core/src/components/Button/Button.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ A user can perform an immediate action by pressing a button. It's frequently use
9393
})}
9494
role="button"
9595
rel="noreferrer noopener"
96-
target={external ? '_blank' : '_self'}
96+
target={external ? '_blank' : ''}
9797
{...$$restProps}
9898
tabindex="0"
9999
>

0 commit comments

Comments
 (0)