We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I try to handle toast clicks, so I attached a function to the ClickHandler :
let toast: Toast = { type: 'info', title: title, body: 'Click here to cancel', showCloseButton: true, timeout: 9000, clickHandler: (toast , isCloseButton) => { console.log("isCloseButton : "+isCloseButton); return true; } }; this.toastr.pop(toast);
But the function is called twice when the user press the exit button.
Have I missed something ?
The text was updated successfully, but these errors were encountered:
The above sample looks reasonable.
Could you please create a plunker that demonstrates the behavior? I can't reproduce it.
Sorry, something went wrong.
Sure.
http://plnkr.co/edit/BhaQ6VypGntO83FHXVOV?p=preview
534d301
Apologies for the delayed fix. This was a bug only when the ClickHandler evaluated to false and the toast was not removed.
This is included in the 0.3.6-rc.4 release.
No branches or pull requests
Hi,
I try to handle toast clicks, so I attached a function to the ClickHandler :
But the function is called twice when the user press the exit button.
Have I missed something ?
The text was updated successfully, but these errors were encountered: