@@ -25,11 +25,19 @@
export let show = false;
+ $: if (show) {
+ init();
+ }
+
let modalElement = null;
let mounted = false;
let focusTrap: FocusTrap.FocusTrap | null = null;
+ const init = () => {
+ inputValue = '';
+ };
const handleKeyDown = (event: KeyboardEvent) => {
if (event.key === 'Escape') {
console.log('Escape');