We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a722bec commit ddbf73dCopy full SHA for ddbf73d
src/lib/BaseModal.svelte
@@ -1,7 +1,7 @@
1
<script lang="ts">
2
export let showModal: boolean;
3
4
- let dialog: HTMLDialogElement;
+ export let dialog: HTMLDialogElement;
5
6
$: if (dialog && showModal) dialog.showModal();
7
</script>
src/routes/FileSelector.svelte
@@ -20,10 +20,9 @@
20
dialog.close();
21
}
22
23
- $: if (dialog && showModal) dialog.showModal();
24
25
26
-<BaseModal bind:showModal>
+<BaseModal bind:showModal bind:dialog>
27
<h2>使い方</h2>
28
<ol>
29
<li>
0 commit comments