Skip to content

Commit

Permalink
refactor: Listen for transitionend on the transitioned element instea…
Browse files Browse the repository at this point in the history
…d of relying on event bubbling
  • Loading branch information
rkunev committed Dec 1, 2018
1 parent 21deee4 commit 3ab94f2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ColorPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
<div class="rcp__rotator"
:style="{ 'pointer-events': isDisabled ? 'none' : null }"
@dblclick.self="rotateToMouse"
ref="rotator"
@transitionend="hidePalette">
<div class="rcp__knob" :class="isKnobIn ? 'in' : 'out'"></div>
ref="rotator">
<div class="rcp__knob" :class="isKnobIn ? 'in' : 'out'" @transitionend="hidePalette"></div>
</div>

<div class="rcp__ripple"
Expand Down

0 comments on commit 3ab94f2

Please sign in to comment.