Solved inputGroup no longer functions as expected with xf:numberbox

This topic has been solved
D

DragonByte Tech

Guest
In XenForo 2.2, the following code:
HTML:

Code:
<div class="inputGroup">
    <xf:numberbox name="someName" min="0" step="any" class="input--numberNarrow" />
    <span class="inputGroup-text">someText</span>
</div>

Produces the following display:
1712938507329.webp

The same code in XF 2.3:
1712938532020.webp

This is because of the following CSS:
CSS:

Code:
.inputGroup
{
    [...]
    
    > .inputGroup,
    > .inputChoices
    {
        flex: 1;
    }

Removing flex: 1; fixes this issue.

Continue reading...