fix: clear fields when modal closed

This commit is contained in:
Arman
2022-07-14 10:27:56 +02:00
parent 9c5a9af263
commit ccc679d0b6
2 changed files with 11 additions and 0 deletions
@@ -32,6 +32,13 @@
});
}
};
$: if (!showDropdown) {
id = null;
}
$: if (!showCreate) {
showDropdown = false;
}
</script>
<Form on:submit={create}>
@@ -77,6 +77,10 @@
read = [];
write = [];
}
$: if (!showDropdown) {
id = null;
}
</script>
<input bind:files id="file" type="file" style="display: none" />