Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Toast: does onClose callback function work? #346

@gbruins-notours

Description

@gbruins-notours

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Toast docs page
  2. Update an "Editable Example" by adding these properties to the $toast config object:
        isClosable: true,
        onClose: () => { console.log("ON CLOSE") },
  1. Open you browser's javascript console.
  2. Click the respective "Show Toast" button
  3. Click the "X" icon in the toast
  4. Expect to see "ON CLOSE" printed in the console

Expected behavior
Nothing is printed in the console

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions