Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The notification hide but when mouse over on position, the notification appear #119

Open
BodasDeSangre opened this issue Mar 14, 2017 · 2 comments

Comments

@BodasDeSangre
Copy link

Hi,

I have a problem with the notification, When a notification is shown, it show for a time an then it's dissapear, it's ok.

But when I put the mouse over the posittion of the notification was shown, It come back! :(.

Can you help me with this issue please.

@mcblum
Copy link

mcblum commented Mar 21, 2017

+1. Same thing for us. Maybe we're missing a command to hide them or something?

@mcblum
Copy link

mcblum commented Mar 21, 2017

@BodasDeSangre actually, I just figured it out. It says in the docs that any notification show method returns a promise and with that response, the method to kill the notification. Try something like this:

 show(message, params) {
        this.NotificationLibrary({
            delay: 4000,
            type: params.type,
            message: message,
            closeOnClick: true,
            onClose: this.messageClosed
        }).then((response) => {
            this.$timeout(() => {
                response.kill(true);
            }, 5000)
        })
    }

This works for me and the messagedClosed callback fires and the message is removed from the dom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants