anein / angular2-trim-directive

the directive trims whitespaces from the end of an input text value.
MIT License
46 stars 26 forks source link

using the input Trim directive disables all other custom validations applied on the control #10

Closed xpgupta closed 6 years ago

anein commented 6 years ago

Hi! To understand more precisely what is going on, it would be nice to see an example.

xpgupta commented 6 years ago

We have custom validations like maxLength check, special characters check, required field check , which are set to be validate on "OnBlur" event, but while i apply this trim directive, only trim works and no other prior validations work.

anein commented 6 years ago

Please, forgive me, I'm not professor Albus Dumbledore, and my personal prophets are on holiday, thus I cannot predict what is going on in your custom validators. The directive works well with in-built validators. Here is the demo.