Vue JS Focus on Whole Text Box Field

Select the Whole Input Field Vue JS. Similar to the Focus for jQuery.

This is a short snippet to select the whole field when focus for easy copying and pasting. 

@focus="$event.target.select()"

Demo: https://thecodebeast.com/hex-to-rgb/