Max validation on input broken

Wappler Version : 6.4.2 beta/exp
Operating System : mac
Server Model: node
Database Type:
Hosting Type:

Expected behavior

The validation of max should use the entire number provided

Actual behavior

Only the first digit is used

How to reproduce

<input type="text" class="form-control" id="inp_free_trial_days" name="free_trial_days" placeholder="Enter number" value="0" onclick="this.select()" required="" min="0" data-rule-min="0" max="30" data-rule-max="30">

This input will allow 0, 1, 2 or 3 only. It should allow 0 - 30.

Shouldn’t the input be of type number, the min and max validation is not for text fields.

image

3 Likes