anein / angular2-trim-directive

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

Trim on blur event don't dispatch angular change on Edge #42

Open deividfortuna opened 5 years ago

deividfortuna commented 5 years ago

Using the directive trim on blur is not trigger the angular change callback.

<input trim="blur" (change)="onChange($event.target.value)" >

The function onChange($event.target.value) is not been called in Microsoft Edge when using the directive even when isn't necessary trim the string.

Unfortunately you need to use Edge to reproduce: https://stackblitz.com/edit/angular-trim