Vue: Why not add v-on:doubleClick

Created on 6 Dec 2015  ·  8Comments  ·  Source: vuejs/vue

A double click event?

Most helpful comment

^ Note: .native is only necessary when binding native events on components

// components
<foo v-on:dblclick.native ="doBar"/>
// normal elements
<div v-on:dblclick="doBar"/>

All 8 comments

You can use any native event, e.g. v-on:dblclick.

Thanks.

v-on:dblclick

Still wrong

For reference with Vue 2 it should be : v-on:dblclick.native

^ Note: .native is only necessary when binding native events on components

// components
<foo v-on:dblclick.native ="doBar"/>
// normal elements
<div v-on:dblclick="doBar"/>

nice

i has inpute dbclick,solve my problems----dblclick!!

thanks

Was this page helpful?
0 / 5 - 0 ratings