opted-eu / wp3inventory

WP3 Inventory
https://meteor.opted.eu/
GNU General Public License v3.0
2 stars 2 forks source link

Trim whitespace from numbers #142

Closed vestedinterests closed 2 years ago

vestedinterests commented 2 years ago

When users enter the number of visitors to a website or circulation, they might copy the number from a news article, accidently including whitespace at the beginning or end of the number " 1000".s´ I would suggest either clarifying the error of why the entry for the field is invalid or just trimming white space at the beginning and end of number fields.

mrwunderbar666 commented 2 years ago

This problem is related to the default validation rules of the browser. The javascript handling the step-by-step validation needs to handle optional fields better