khashayar / ng-trim-value-accessor

Angular's (missing) trim accessor to automatically trim values of input fields
MIT License
53 stars 19 forks source link

feat: apply trim on blur #5

Closed moniuch closed 7 years ago

moniuch commented 7 years ago

This is to provide the trim behavior on blur, so that besides applying the value internally, the trimmed value is immediately reflected in the input. The most typical scenario handled is when user leaves untrimmed input and immediately submits the form.

khashayar commented 7 years ago

Thanks for the PR!