mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-07 10:26:45 +03:00
Merge pull request #1213 from gitbutlerapp/link-fix
fix link without href
This commit is contained in:
commit
c5dc6785a2
@ -11,10 +11,12 @@
|
||||
export let disabled = false;
|
||||
export let href: string | undefined = undefined;
|
||||
|
||||
let element: HTMLAnchorElement | HTMLButtonElement;
|
||||
let element: HTMLAnchorElement | HTMLButtonElement | undefined;
|
||||
|
||||
onMount(() => {
|
||||
element.ariaLabel = element.innerText?.trim();
|
||||
if (element) {
|
||||
element.ariaLabel = element.innerText?.trim();
|
||||
}
|
||||
});
|
||||
|
||||
$: isExternal = href?.startsWith('http');
|
||||
|
Loading…
Reference in New Issue
Block a user