vue-tel-input icon indicating copy to clipboard operation
vue-tel-input copied to clipboard

event from @blur/@focus ?

Open Sharlaan opened this issue 3 years ago • 1 comments

Would it be possible to get something more exploitable from @blur and @focus props than an empty [] ?

Example usecase: applying some customValidator @blur, and a resetError @ focus.

Suggestions: Please fill that array with event.target from dropdown for index 0, and the input from for index 1

Or even better, an explicit object with this interface : { dropdownEvent?: EventTarget, inputEvent?: EventTarget }

Or another idea: reuse the @validate event, adding a 2nd param trigger: 'onInput' | 'onBlur' (default: 'onBlur')

Sharlaan avatar Feb 26 '21 17:02 Sharlaan

Or another idea: reuse the @validate event, adding a 2nd param trigger: 'onInput' | 'onBlur' (default: 'onBlur')

This idea would be very useful.

valeriu9 avatar Mar 05 '21 14:03 valeriu9