DragonByte Tech
Well-known member
- Affected version
- 2.0.4
Consider the following HTML:
When refreshing the page, a normal input box with -1 is shown but as soon as the two number box step buttons appear, the value is wiped out.
This does not affect "normal" numberboxes that are not inside a field-adder.
Fillip
Code:
<li class="inputPair" data-xf-init="field-adder" data-increment-format="available_products[{counter}]">
<div class="inputGroup">
<xf:select name="available_products[{$nextCounter}][product_id]" class="filterBlock-input">
<xf:option>{{ phrase('(none)') }}</xf:option>
<xf:foreach loop="{{ $products }}" value="$treeEntry">
<xf:option value="{$treeEntry.record.product_id}">{{ repeat('--', $treeEntry.depth) }}
{$treeEntry.record.title}
</xf:option>
</xf:foreach>
</xf:select>
<span class="inputGroup-splitter"></span>
<xf:numberbox name="available_products[{$nextCounter}][available_licenses]" min="-1"
step="1" value="-1" required="{{ false }}" />
</div>
</li>
When refreshing the page, a normal input box with -1 is shown but as soon as the two number box step buttons appear, the value is wiped out.
This does not affect "normal" numberboxes that are not inside a field-adder.
Fillip