vue-ripple-directive icon indicating copy to clipboard operation
vue-ripple-directive copied to clipboard

Global handler modifier

Open yannmichaux opened this issue 6 years ago • 0 comments

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>

yannmichaux avatar Jun 01 '19 16:06 yannmichaux