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

Second argument is necessary in order for options to be read #244

Open
BotchTheCrab opened this issue Oct 27, 2021 · 0 comments
Open

Second argument is necessary in order for options to be read #244

BotchTheCrab opened this issue Oct 27, 2021 · 0 comments

Comments

@BotchTheCrab
Copy link

Under Toastr customization, regarding passing custom options to an individual toast message call, it says:

The second option is to pass a third parameter (or second if you don't need a title). Let see some examples:

However, my testing confirms that this is not the case. If a title is omitted and the options object is passed as the second argument, it is ignored. If a title is not desired, the workaround is to pass an empty string.

I think passing an empty string is perfectly fine, I just wanted to note that, assuming I'm correct, the documentation should be slightly tweaked.

Thank you for this project! It is very helpful.

@BotchTheCrab BotchTheCrab changed the title Second options is necessary in order for options to be read Second argument is necessary in order for options to be read Oct 27, 2021
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

1 participant