iamstevendao / vue-tel-input

International Telephone Input with Vue
https://iamstevendao.com/vue-tel-input/
MIT License
814 stars 340 forks source link

Duplicated country in the searchBox when I have preferred countries #377

Open rchalmeta opened 2 years ago

rchalmeta commented 2 years ago

If I have a list of preferred countries and I try to do a search I have the preferred countries duplicated.

One is in the preferred list The other is in the complete list in the alphabetic order.

I think this is a limitation. It is possible to delete the countries that are in the preferred list? Or have some flag to configure this option?

andreasvoigt commented 1 year ago

I also found the issue with the preferred countries. An option to configure it would be nice or drop one of the duplicates when the user filters.

Regarding the filtering in the list, there also is an issue with the separator line as the position of the line is fixed after the first three items which show them as preferred. But when the user filters, the results might not be the preferred countries but any other country which is in the filter result. I would suggest to skip the complete preferred list while filtering also with the separator.

Is there any chance of providing a fix for it in the near future?

(I'm using vue-tel-input@5.11.0 with Vue 2.)