Skip to content

Dialog Alert won't close due to: Uncaught (in promise) TypeError: resolve is not a function #124

@KostjaStein

Description

@KostjaStein

How to reproduce:

  1. go to: https://c0bra.github.io/svelma/components/dialog/
  2. click "Dialog" button
  3. 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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions