Select all text in input field on click the Vue JS way

Comparing the traditional javascript way with the Vue event you can use.

SNP 003 #24B Filed js vue

Traditionally in javascript you would do something like this.

html
<input onClick="this.select();" value="select me" />

This still works in a Vue app, but you probably want to do something like this to achieve the same.

html
<input @focus="$event.target.select()" value="select me" />