CdTgr / vue3-q-tel-input

Vue 3 telephone input implemented over Quasar framework
MIT License
12 stars 14 forks source link

Added new props to avoid automatic country selection based on the input value #35

Closed CdTgr closed 1 year ago

CdTgr commented 1 year ago

PR for #34

Description

I am assuming the issue is related to countries that have the same country code. In my case I am selecting United States ( or it is there by default ) I start typing 512 which is an area code in the United States and the country switches to Antigua and Barbuda. I am guessing it is because it is the first country with the country code of +1 in the list. It probably needs to check to see if the current country selected is already the same country code before it tries to automatically make an update. Please let me know how I can help. But on a side note, this is a great component.

Proposed Solution

Add a new prop disableAutoCountrySelection which disables the auto country selection behaviour.