From 920864e3035cbdc69eabd026bcba29881be290fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Sun, 23 Apr 2023 16:59:04 +0800 Subject: [PATCH] chore: skip error type --- components/theme/themesToken/happy/wave.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/theme/themesToken/happy/wave.tsx b/components/theme/themesToken/happy/wave.tsx index f603f0b4e7..8969cd81bd 100644 --- a/components/theme/themesToken/happy/wave.tsx +++ b/components/theme/themesToken/happy/wave.tsx @@ -49,6 +49,10 @@ function HappyWave({ target, token, onFinish }: HappyWaveProps) { // ========================= Dots ========================= React.useEffect(() => { const id = raf(() => { + if (['-dangerous', '-error'].some((skipCls) => target.className.includes(skipCls))) { + return; + } + const rect = target.getBoundingClientRect(); const { width, height } = rect;