UI Validations for numbers not working as expected

Wappler Version : 5.5.2
Operating System : Ubuntu
Server Model: NodeJS
Database Type: Postgres
Hosting Type: Docker

Expected behavior

Validations for number fields should be hitting Digits/Number validations when “±.” characters are entered.

Actual behavior

Validations for number fields are hitting Required validation instead of Digits/Number validations when “±.” characters are entered in.

…YOUR TEXT HERE …

How to reproduce

  • Create a number field in a form
  • Add Required, Digit validation, and min 1 validation
  • Enter +-. into the field, it will hit the required validation instead of the digit validation

Code Snippit as below:

<input id="fi_client_id" name="client_id" type="number" class="form-control" placeholder="Enter Client ID" required="" data-msg-required="Client ID is required." min="1" data-rule-min="1" dmx-on:changed="fi_client_id.validate()" data-rule-digits="">

There is not much I can do about it, the default number input returns an empty string as value when you enter a - into it.