By default Bootstrap 4 dropdown classes are used.
Free online country REST API https://restcountries.eu/ is used in this example to get data via AJAX.
dropdown-hover
attributeThis dropdown opens on mouse hover, you may move mouse outside and get it back fast
dropdown-keep-inside
attributeThis dropdown will not close on item click