From 9ad5cdd0fb8f08693bcfae05290f119c615aa9ee Mon Sep 17 00:00:00 2001 From: Luciano Martorella Date: Wed, 29 Jun 2022 11:37:13 +0200 Subject: [PATCH] - When force disable animation --- toastr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toastr.js b/toastr.js index 1f804394..2a4fbc14 100644 --- a/toastr.js +++ b/toastr.js @@ -132,7 +132,7 @@ var force = clearOptions && clearOptions.force ? clearOptions.force : false; if ($toastElement && (force || $(':focus', $toastElement).length === 0)) { $toastElement[options.hideMethod]({ - duration: options.hideDuration, + duration: force ? 0 : options.hideDuration, easing: options.hideEasing, complete: function () { removeToast($toastElement); } });