From 1729329c58574a0ad88f61998e7a256d99b3cb92 Mon Sep 17 00:00:00 2001 From: Zephyruso <127948745+Zephyruso@users.noreply.github.com> Date: Mon, 4 Sep 2023 18:02:36 +0800 Subject: [PATCH] chore: btn animate with try catch --- src/helpers/proxies.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/helpers/proxies.ts b/src/helpers/proxies.ts index 1a107e5..d6993d5 100644 --- a/src/helpers/proxies.ts +++ b/src/helpers/proxies.ts @@ -18,7 +18,9 @@ export const handlerBtnClickWithAnimate = async ( } el.classList.add(className) - await cb() + try { + await cb() + } catch {} el.classList.remove(className) }