Skip to content

Commit

Permalink
fix(v-ripple): avoiding more and more
Browse files Browse the repository at this point in the history
In some cases, when calling show continuously, ripples will increase.
  • Loading branch information
dgmpk committed Dec 22, 2024
1 parent 1d34a83 commit 205f891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vuetify/src/directives/ripple/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ const ripples = {
const ripples = el.getElementsByClassName('v-ripple__animation')

if (ripples.length === 0) return
const animation = ripples[ripples.length - 1]
const animation = Array.from(ripples).findLast(ripple => !ripple.dataset.isHiding)

if (animation.dataset.isHiding) return
if (!animation) return
else animation.dataset.isHiding = 'true'

const diff = performance.now() - Number(animation.dataset.activated)
Expand Down

0 comments on commit 205f891

Please sign in to comment.