Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Textarea: Make textarea autogrow also work on paste and with multibyt…
Browse files Browse the repository at this point in the history
…e chars. Fixes #4854.
  • Loading branch information
jaspermdegroot committed Dec 3, 2012
1 parent ba9bcce commit 74f1914
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/widgets/forms/textinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ $.widget( "mobile.textinput", $.mobile.widget, {
clientHeight = input[ 0 ].clientHeight;

if ( clientHeight < scrollHeight ) {
input.height(scrollHeight + extraLineHeight);
input.height( scrollHeight + extraLineHeight );
}
};

input.keyup(function() {
input.on( "keyup change input paste", function() {
clearTimeout( keyupTimeout );
keyupTimeout = setTimeout( self._keyup, keyupTimeoutBuffer );
});
Expand Down

0 comments on commit 74f1914

Please sign in to comment.