Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global handler modifier #24

Open
yannmichaux opened this issue Jun 1, 2019 · 0 comments
Open

Global handler modifier #24

yannmichaux opened this issue Jun 1, 2019 · 0 comments

Comments

@yannmichaux
Copy link

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant