We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bb7298 commit a1da288Copy full SHA for a1da288
packages/svelte/src/components/Link.svelte
@@ -24,10 +24,11 @@
24
export let cacheFor: CacheForOption | CacheForOption[] = 0
25
26
$: asProp = method !== 'get' ? 'button' : as.toLowerCase()
27
- $: elProps = {
28
- a: { href },
29
- button: { type: 'button' },
30
- }[asProp] || {}
+ $: elProps =
+ {
+ a: { href },
+ button: { type: 'button' },
31
+ }[asProp] || {}
32
</script>
33
34
<!-- svelte-ignore a11y-no-static-element-interactions -->
0 commit comments