Work on reworked season page

This commit is contained in:
Aleksi Lassila
2023-08-03 16:48:13 +03:00
parent 4646883dff
commit a50ea33f1b
11 changed files with 168 additions and 63 deletions

View File

@@ -9,7 +9,7 @@
export let disabled = false;
export let href: string | undefined = undefined;
export let target: string | undefined = undefined;
export let target: string | undefined = '_self';
let buttonStyle: string;
// $: buttonStyle = classNames(
@@ -44,8 +44,7 @@
const handleClick = (event: MouseEvent) => {
if (href) {
if (target === '_blank') window.open(href, target)?.focus();
else window.open(href, target as string);
window.open(href, target)?.focus();
} else {
dispatch('click', event);
}