Fixed readonly numberbox can be modified by number control

stromb0li

Well-known member
Affected version
2.3.3
If you have a readonly numberbox, the textbox is readonly, but you are still able to increment or decrement the value using the + and - buttons.

HTML:
<xf:numberbox name="numberbox"
                      placeholder="Number Input"
                      value="1234"
                      min="0"
                      step="1"
                      required="required"
                      readonly="readonly" />

In this case, I can't change 1234, but I can if clicking the + or - buttons next to the box.
 
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.4).

Change log:
Consider read-only number-box inputs as disabled
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom