-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Added support for explicitly clearing a toast, which ignores the focus c... #226
Conversation
Can this be done as Truth would indicate a forced clear, falsiness/null would indicate legacy functionality. |
Alternately, passing in an object with parameters stating the explicit clear? |
|
The new commit uses an option object on the
toastr.clear($toast, { ignoreFocus: true });
|
Any word on this PR? |
I like it. Name the argument |
Renamed. |
Added support for explicitly clearing a toast, which ignores the focus c...
thanks |
thanks @jstawski |
I added a new clearExplicitly function that clears the toast without checking for focused elements. The idea is to give full control to the developer if they want to clear the toast regardless of focus! More info on issue #220 .