How to reproduce:
- go to: https://c0bra.github.io/svelma/components/dialog/
- click "Dialog" button
- click "OK" button (within alert dialog)
Dialog won't close, console output:
Uncaught (in promise) TypeError: resolve is not a function
at
HTMLButtonElement.confirm (Dialog.svelte:146)
Dialog.svelte:146
resolve(hasInput ? prompt: true)
Dialog.svelte:85-87
// export let showClose = true
let resolve
// export let promise = new Promise((fulfil) => (resolve = fulfil))