LouisMazel / vue-phone-number-input

A phone number input made with Vue JS (format & valid phone number)
https://louismazel.github.io/vue-phone-number-input
MIT License
608 stars 153 forks source link

(BUG) Keyboard search never returns preferred-countries #166

Open goran1023 opened 3 years ago

goran1023 commented 3 years ago

Describe the bug

With preferred-countries prop set, keyboard search ignores those countries and positions on first found non-preferred country which meets input.

Steps to reproduce

With preferred-countries prop set, those countries are at the top. For example: ['GB', 'DE'] Click on country selector and start typing Ge... Cursor will be positioned to Georgia.

Expected behavior

Search should be positioned to first found country in list, preferred countries should have priority to the the rest.

Device