Open AbhaysinghBhosale opened 4 years ago
Yes, if the field value is trimmed when determining if it is empty. Validation (other than required) do not apply to "empty" fields.
If you need a different validation, you can create a custom validation function Check out this example: https://stackblitz.com/edit/reactstrap-validation-v2-xpknkm?file=Example.js
Hi i had input field which should not access leading and trailing slash. For this i have added a reg ex which does not allow leading/trailing slash. But in case if field is optional this validation is does not get applied and field allows space only.