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

Xon

Well-known member
Affected version
2.3.6
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 just not work :(
 
Last edited:
Back
Top Bottom