Browse Source

chore: skip error type

happy
二货机器人 2 years ago
parent
commit
920864e303
  1. 4
      components/theme/themesToken/happy/wave.tsx

4
components/theme/themesToken/happy/wave.tsx

@ -49,6 +49,10 @@ function HappyWave({ target, token, onFinish }: HappyWaveProps) {
// ========================= Dots ========================= // ========================= Dots =========================
React.useEffect(() => { React.useEffect(() => {
const id = raf(() => { const id = raf(() => {
if (['-dangerous', '-error'].some((skipCls) => target.className.includes(skipCls))) {
return;
}
const rect = target.getBoundingClientRect(); const rect = target.getBoundingClientRect();
const { width, height } = rect; const { width, height } = rect;

Loading…
Cancel
Save