Knockout-Validation icon indicating copy to clipboard operation
Knockout-Validation copied to clipboard

Auto trim before validate

Open Eisenspalter opened this issue 10 years ago • 1 comments

Is there a trim option before validate? Or what is the best practice to avoid errors with unnecessary blanks?

Eisenspalter avatar Sep 15 '15 12:09 Eisenspalter

@Eisenspalter The required rule does this but if you want to remove whitespace before any validation rule, then I would suggest implementing a knockout extender. Check out this SO question too.

crissdev avatar Sep 15 '15 13:09 crissdev