anein / angular2-trim-directive

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

Trim directive is breaking the disabled state of controls #32

Closed FrancescoBorzi closed 6 years ago

FrancescoBorzi commented 6 years ago

Trim directive version: 2.2.1 Reproduction: https://stackblitz.com/edit/angular-v5pu3v

As you can see in my reproduction, I have two disabled fields. The one using the [trim]="'blur'" directive does not appear disabled when it should.

anein commented 6 years ago

Because setDisabledState isn't implemented. ¯_(ツ)_/¯

FrancescoBorzi commented 6 years ago

@anein yes, please check my PR https://github.com/anein/angular2-trim-directive/pull/33 :dancer: