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

Trim should not be applied to input type number #30

Open jux61 opened 4 years ago

jux61 commented 4 years ago

I use ng-trim-value-accessor verion 3.0.2, it works correctly for string inputs but breaks number inputs whose values are transformed to a string by the accessor. I can deactivate trim using class "ng-trim-ignore" on these inputs but it could be better to modify the selector to simply ignore it.

khashayar commented 4 years ago

Thanks for reporting this issue. I will apply a fix for it soon.