mojoaxel / bootstrap-select-country

countrypicker is a jQuery plugin that utilizes Bootstrap's dropdown.js and bootstrap-select to provide country data and styling to standard select elements.
https://mojoaxel.github.io/bootstrap-select-country/index.html
MIT License
64 stars 36 forks source link

Fix the double flag bug & Add the ability to search by "country name" #16

Closed dali-rajab closed 4 years ago

dali-rajab commented 4 years ago

Hello

This PR fixes 1 bug and add 1 enhancement :

1. The bug : flag-bug

The bug occurs when i rebuild the project (npm run build) after updating project dependencies (npm install). Even when i installed the exact dependencies versions as shown in packages.json, the bug always exists. I'm not sure why this is happening now, i mean, how could you build the project without seeing this bug, or may be it wasn't there before, may be because of dependencies updates ...

2. The enhancement : When i make a country-picker with two options : live-search && flag

<select class="selectpicker countrypicker" data-live-search="true" data-flag="true"></select>

In this case i can't search by country name (Tunisia in this case). keyword-bug

mojoaxel commented 4 years ago

@dali-rajab Sorry, I have overlooked this pull request. I will have a look and merge it as soon as possible!