I'm having trouble fixing a bug that happens when I use Select2 in a input-group
. The problem is that by selecting a option
with a very long name, input-group
does not respect the width of the parent element.
<div class='elemento_pai' style='width:200px;'>
<div class="input-group">
<select class="select2">
<option></option>
<option>Nome extenso Nome extenso Nome extenso Nome extenso Nome extenso</option>
</select>
<span class="input-group-btn">
<button class="btn btn-sm btn-default" type="submit">
<span class="fa fa-user"></span>
</button>
</span>
</div>
</div>
Whathappensisthatinput-group
endsupwithwidth
greaterthan200px
,notrespectingelemento_pai
.Anyonewhohasevergonethroughthatfoundasolution?
Example of the JSFiddle problem
Unresolved Issues: