say up front
- bootstrap version: 5.1.3
- bootstrap-select version: 1.14.0-beta2
question
bootstrap modal
When used in ,selectpicker
the drop-down selection box is offset, as shown in the figure below:
solution
- add
data-container
attribute - the code
<select class="selectpicker form-control" data-container="body" > </select>
- Note that
this method may cause the selectpicker's search box to be unavailable