no anim if there is a previous callback

This commit is contained in:
Miodec 2022-01-31 13:09:35 +01:00
parent db4174c29a
commit 71eeba4340

View file

@ -47,6 +47,8 @@ export async function show(options = defaultOptions) {
export async function hide() {
if (!$("#quoteReportPopupWrapper").hasClass("hidden")) {
let noAnim = state.previousPopupShowCallback ? true : false;
$("#quoteReportPopupWrapper")
.stop(true, true)
.css("opacity", 1)
@ -54,7 +56,7 @@ export async function hide() {
{
opacity: 0,
},
100,
noAnim ? 0 : 100,
(e) => {
grecaptcha.reset(CAPTCHA_ID);
$("#quoteReportPopupWrapper").addClass("hidden");