Open XhmikosR opened 4 years ago
Hi, @XhmikosR, This issue happen inside the .input-group-append class element only, and can't found this inside the .input-group-prepend class element. It is strange. See #30698 (I have append some detail information) At last, I add .rounded-0 for solve it.
@MartijnCuppens @ffoodd feel free to close this if it's not valid anymore
Not valid anymore indeed: https://v5.getbootstrap.com/docs/5.0/forms/input-group/#segmented-buttons
@MartijnCuppens does it still happen on v4? The issue is about v4.
Didn't check that indeed.
Sometimes I hate our input group lol. Updated the demo from the opening comment and there are issues with both append and prepend. https://codepen.io/emdeoh/pen/gOwBxzN
If you want to use a dropdown on the button that isn't at the last element of the input group, you can do it by using multiple
.input-group-append
s. I mentioned about this usage in #25075, but it isn't described in the documents.Demo: https://codepen.io/anon/pen/wNJWeL
Why need multiple
.input-group-append
? A.dropdown-menu
must be the last child of the wrapper (.dropdown
,.btn-group
or an element hasposition: relative
). This mean the following code is incorrect:So, you should use multiple
.input-group-append
s:Originally posted by @ysds in https://github.com/twbs/bootstrap/issues/28150#issuecomment-459557777