diff --git a/src/components/vue-tel-input.vue b/src/components/vue-tel-input.vue index 2bb9786a..c7744a3a 100644 --- a/src/components/vue-tel-input.vue +++ b/src/components/vue-tel-input.vue @@ -530,18 +530,18 @@ export default { this.$emit('update:modelValue', value); this.$emit('on-input', value, this.phoneObject, this.$refs.input); }, - onBlur() { - this.$emit('blur'); + onBlur(e) { + this.$emit('blur', e); }, - onFocus() { + onFocus(e) { setCaretPosition(this.$refs.input, this.phone.length); - this.$emit('focus'); + this.$emit('focus', e); }, - onEnter() { - this.$emit('enter'); + onEnter(e) { + this.$emit('enter', e); }, - onSpace() { - this.$emit('space'); + onSpace(e) { + this.$emit('space', e); }, focus() { this.$refs.input.focus();