css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv
CodePen probably won't work great in this browser. We generally only support the major desktop browsers like Chrome, Firefox, Safari, and Edge. Use this one at your own risk! If you're looking to test things, try looking at Pens/Projects in Debug View.
user profile image

This is an easy to use auto-expanding textarea with angularjs. No other library required!

Comments

  1. Change ng-keypress to ng-keyup and this is golden. Great work.

  2. OK. It turns out I needed to handle the case for when I had data loaded in with ng-model. So I needed to leverage $timeout. Of course I could have thrown $watch in there, but that seems dirty to me. :)

    Here's a modified version. http://codepen.io/kenhowardpdx/pen/azzYZz

  3. Thanks for modifying it. I applied the changes from your version :) Btw I also added transition to make height change look smoother.

  4. when I delete text from the textarea the scroll height never goes back to the original height.

Leave a Comment Markdown supported. Click @usernames to add to comment.

You must be logged in to comment.
Loading...
Loading...