There have been reports that bootstrap 4 country select is not functioning properly. In an effort to troubleshoot, I delved into the documentation to find a solution.
To make bootstrap-select compatible with bootstrap 4, refer to:
Bootstrap 4 beta-2
It has come to my attention that Bootstrap-select (ver. 1.12.4) remains incompatible with Bootstrap 4 beta-2. To address this issue, include an additional CSS file or insert the following snippet between tags on the webpage where the country-picker is displayed:
Despite implementing the suggested code below, I am still encountering issues. Any assistance would be greatly appreciated.
.bootstrap-select>.dropdown-menu>.dropdown-menu li a {
display: block;
width: 100%;
padding: 3px 1.5rem;
clear: both;
font-weight: 400;
color: #292b2c;
text-align: inherit;
white-space: nowrap;
background: 0 0;
border: 0;
text-decoration: none;
}
.bootstrap-select>.dropdown-menu>.dropdown-menu li a:hover {
background-color: #f4f4f4;
}
.bootstrap-select>.dropdown-toggle {
width: 100%;
}
.dropdown-menu>li.active>a {
color: #fff !important;
background-color: #337ab7 !important;
}
.bootstrap-select .check-mark {
line-height: 14px;
}
.bootstrap-select .check-mark::after {
font-family: "FontAwesome";
content: "\f00c";
}
.bootstrap-select button {
overflow: hidden;
text-overflow: ellipsis;
}
/* Make filled out selects be the same size as empty selects */
.bootstrap-select.btn-group .dropdown-toggle .filter-option {
display: inline !important;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="http://hondaofishers.space/assest/js/dependancies/bootstrap-select-1.12.4/dist/css/bootstrap-select.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"></script>
<script src="http://hondaofishers.space/assest/js/dependancies/bootstrap-select-1.12.4/dist/js/bootstrap-select.min.js"></script>
<script src="http://hondaofishers.space/assest/js/countrypicker.min.js"></script>
<div>
<div>
<select class="selectpicker countrypicker" data-live-search="true" data-default="United States" data-flag="true"></select>
</div>
</div>