Fixed inputGroup no longer functions as expected with xf:numberbox

DragonByte Tech

Well-known member
Affected version
2.3.0b3
In XenForo 2.2, the following code:
HTML:
<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:
.inputGroup
{
    [...]
    
    > .inputGroup,
    > .inputChoices
    {
        flex: 1;
    }

Removing flex: 1; fixes this issue.
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.0 Beta 5).

Change log:
Fix spacing of input group children
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom