Comments (1)
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 <textarea> properly if the "blur" event is set as the attribute's value. Thus, I think, the best choice is to use "textarea[trim="blur"]" as a selector.
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.
from angular2-trim-directive.
Related Issues (20)
- puts "undefined" in empty inputs HOT 8
- field invalid when value is pasted in textbox
- Add support for input trim when pasting(Feature request)
- ound version 4, expected 3 HOT 1
- It gives state as invalid for single character HOT 5
- There is bug in the Safari browser below the Mac system. HOT 2
- white space between statement HOT 1
- Copy pasting doesn't trigger change event in v2.1.5 HOT 2
- Breaks browser AutoFill HOT 1
- Doesn't work with es6 HOT 5
- Trim directive is breaking the disabled state of controls HOT 2
- throw error when enter 1 letter only. with trim="blur" in reactive form HOT 5
- Safari: cursor moves to the end if you type the symbol at the beginning/middle HOT 6
- Breaking change from 2.3.0 to 2.3.1 HOT 2
- Null is show on IE textarea
- Cannot disable trim dynamically
- Trim on blur event don't dispatch angular change on Edge
- Angular 11 support HOT 2
- If the input model value is set to 0, it is not showing in the input field
- Cursor moves to end of email input on Safari on input event HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular2-trim-directive.