Skip to content

Global handler modifier #24

@yannmichaux

Description

@yannmichaux

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions