RSS Feed/News inputGroup no longer functions as expected with xf:numberbox

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
26,921
Points
823

Reputation:

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...
 
Status
Not open for further replies.
Top