Closed devlau closed 6 years ago
Greetings.
Yes, the directive doesn't work with the textarea field because, out of the box, it doesn't allow you to add new lines, and therefore such behavior violates the whole concept of textarea. The directive will trim value of
Anyway, if you wish, I can add "textarea[trim]" or you can create a PR. 😇
And I apologize for taking so long in responding to your request.
Hello Sir,
great directive! I had just one small request if possible. Your directive does not work with
selector: 'input[trim] ',
to:
selector: 'input[trim] , textarea[trim]',
Which seems to fix the problem. However I am a bit of a novice at this, and would love for it to work out of the box as I seem to have a bit of a problem saving those changes. Thanks for the great directive, keep up the good work 👍