Skip to content

Commit

Permalink
[fix](@svelteui/core): remove target='_self' from button anchor behav…
Browse files Browse the repository at this point in the history
…iour

Using target=_self triggers a full page reload, which renders useless the svelte-kit page load logic

ISSUES CLOSED: #501
  • Loading branch information
BeeMargarida committed Jul 7, 2024
1 parent 0ad7bc2 commit dfdc0c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/svelteui-core/src/components/Button/Button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ A user can perform an immediate action by pressing a button. It's frequently use
})}
role="button"
rel="noreferrer noopener"
target={external ? '_blank' : '_self'}
target={external ? '_blank' : ''}
{...$$restProps}
tabindex="0"
>
Expand Down

0 comments on commit dfdc0c9

Please sign in to comment.