evyros / angularjs-autogrow

AngularJS 1.x directive for auto-grow / auto-resize of textarea elements.
16 stars 15 forks source link

Very slow when typing and holding specific key #12

Open penguinawesome opened 4 years ago

penguinawesome commented 4 years ago

The rendering of the text in the textarea is very slow when you are trying to type and holds a specific key only (example: try to type aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)

I found out that there is an issue in this part:

setting the height of the textarea to auto then setting it again to new height.

image