LouisMazel / vue-phone-number-input

A phone number input made with Vue JS (format & valid phone number)

Home Page:https://louismazel.github.io/vue-phone-number-input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(BUG) Keyboard search never returns preferred-countries

goran1023 opened this issue · comments

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

  • all