diff --git a/index.html b/index.html index a350e5a..01e933e 100644 --- a/index.html +++ b/index.html @@ -138,11 +138,11 @@ hideLoading(); renderBillingDom([]) $('.loading').show(); + $('.filter-item').removeClass('active'); + const key = $(this).attr('data-query-key'); + $(this).addClass('active') const timer = setTimeout(() => { clearTimeout(timer) - $('.filter-item').removeClass('active'); - const key = $(this).attr('data-query-key'); - $(this).addClass('active') if (key === 'nearlyMonth') { renderBillingDom(nearlyMonth) } else if (key === 'lastThreeMonths') {