vue-ripple-directive
vue-ripple-directive copied to clipboard
Global handler modifier
Hello,
I noticed that by adding the "v-ripple" directive on an element using the "@click" event, the ripple effect was not displayed.
So I tried to use the "mousedown" modifier that fixes this problem (it works by the way, maybe specify it in the readme?)
It might be useful to be able to specify the handler globally:)
In this case, the ripple effect will not be displayed, because the @click event overrides the ripple event
<div v-ripple @click="doSomething()">
...
</div>
The solution I use
<div v-ripple.mousedown @click="doSomething()">
...
</div>