windmill-components 1.472.2 → 1.472.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -54,7 +54,7 @@ async function getMenuElements() {
|
|
|
54
54
|
|
|
55
55
|
<!--svelte-ignore a11y-no-static-element-interactions-->
|
|
56
56
|
{#if open}
|
|
57
|
-
<div {...$menuElement} use:$menuElement.action data-menu class="z-[6000]" on:click
|
|
57
|
+
<div {...$menuElement} use:$menuElement.action data-menu class="z-[6000]" on:click>
|
|
58
58
|
<div
|
|
59
59
|
class={twMerge(
|
|
60
60
|
'border w-56 origin-top-right rounded-md shadow-md focus:outline-none overflow-y-auto py-1',
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
<script>import { melt } from '@melt-ui/svelte';
|
|
2
|
-
import { goto } from '$app/navigation';
|
|
3
2
|
export let href = undefined;
|
|
4
3
|
export let disabled = false;
|
|
5
4
|
export let target = undefined;
|
|
6
5
|
export let item;
|
|
7
|
-
function handleClick(e) {
|
|
8
|
-
if (href && !target) {
|
|
9
|
-
e.preventDefault();
|
|
10
|
-
goto(href);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
6
|
</script>
|
|
14
7
|
|
|
15
8
|
{#if href}
|
|
@@ -21,7 +14,6 @@ function handleClick(e) {
|
|
|
21
14
|
aria-disabled={disabled}
|
|
22
15
|
tabindex={disabled ? -1 : undefined}
|
|
23
16
|
{target}
|
|
24
|
-
on:click={handleClick}
|
|
25
17
|
on:m-focusin
|
|
26
18
|
on:m-focusout
|
|
27
19
|
>
|