Skip to content

ToasterMessage: Closing expirable message manually throws exception #607

Open
@mythic2

Description

When a ToasterMessage is created with duration > 0, it creates a timer to hide it automatically after elapsed time. If the message is destroyed before the timout, the timer is destroyed as well. However destroy function causes uncaught exception, because the timer promise is not fulfilled:

this.destroy = function () {
    if (! _fulfilled) {
        reject();
    }
};

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions