CodeSeven / toastr

Simple javascript toast notifications
http://www.toastrjs.com
MIT License
11.99k stars 2.04k forks source link

No effect with showDuration and hideDuration #529

Open Drumkruk opened 7 years ago

Drumkruk commented 7 years ago
"showDuration": "300",
"hideDuration": "300",

These options seem to have no effect on the fadeIn and fadeOut. Is that correct? Other settings we have:

"closeButton": true,
"debug": true,
"newestOnTop": true,
"progressBar": false,
"positionClass": "toast-top-full-width",
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "300",
"timeOut": "5000",
"extendedTimeOut": "2500",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"

Am I missing something?

ggedde commented 6 years ago

Just rant into this issue. Tried putting the value as a (int) and not a string and it worked! So make sure to remove the quotes around your values.