Skip to content

Commit

Permalink
fix(ripple): avoid reading back el.style.width
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Nov 22, 2018
1 parent ebc5aaf commit 1058210
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/vuetify/src/directives/ripple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ const ripple = {

const { radius, scale, x, y, centerX, centerY } = calculate(e, el, value)

const size = `${radius * 2}px`
animation.className = 'v-ripple__animation'
animation.style.width = `${radius * 2}px`
animation.style.height = animation.style.width
animation.style.width = size
animation.style.height = size

el.appendChild(container)

Expand Down

0 comments on commit 1058210

Please sign in to comment.