I have a form on a BS4 page which has a number input that I want to accept decimals for a monetary value but for some reason when someone types the decimal point, the cursor returns to the start of the number in the input. See the video below:
NumberInputIssue
Here’s the HTML for the input (the form is on a modal and the input is in a conditional region - not that I would expect that to make a difference)
<div class="col-auto" is="dmx-if" id="conditional2" dmx-bind:condition="inp_clubChargeable.value == 'session'">
<div class="form-group">
<label for="inp_clubSessionCost">Session cost</label>
<input type="number" step="any" class="form-control" id="inp_clubSessionCost" name="clubSessionCost" aria-describedby="inp_clubSessionCost_help" placeholder="Enter Session cost" data-rule-number="" required="" min="" data-rule-min="0">
</div>
</div>
I tried adjusting the step (tried both ‘any’ and 0.01), adding validation, removing validation and the behaviour doesn’t change.
The only way I have found to get around it is to make the input type=“text” which is far from ideal!