RSS Feed/News XF option numeric data type no longer supports decimals if using min/max attributes

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,584
Points
823

Reputation:

Data type: Numeric allows floatpoint values. But how the input element is implemented doesn't work with decimal values if using min/max values

1739920444742.webp

With the config:
1739920521571.webp

This generates the following HTML:
Code:

<input type="number" pattern="\d*" class="input input--number js-numberBoxTextInput" value="0.4" min="0" step="1" required="required" name="options[svESE_weightReplyCount]" id="_xfUid-22-1739920545">

The issue appears to be min="0" step="1" causes a decimal handling to...

Read more

Continue reading...
 
Status
Not open for further replies.
Top