Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vue v-on:click.native in JSX?

How to write vue syntax v-on:click.native in JSX?

For example v-on:click in JSX is onClick.

like image 647
Everettss Avatar asked Jul 05 '18 19:07

Everettss


1 Answers

Answer was in the documentation for babel-plugin-transform-vue-jsx and it is nativeOnClick:

<el nativeOnClick={this.nativeOnClickHandler} />
like image 179
Everettss Avatar answered Oct 16 '22 05:10

Everettss