Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

move pagechange binding for textarea autogrow outside the check for t…

…ext content
  • Loading branch information...
commit 6f00d35db8a69c6bdeef61de981d367c0d6294ee 1 parent e918442
John Bender johnbender authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 js/jquery.mobile.forms.textinput.js
8 js/jquery.mobile.forms.textinput.js
View
@@ -96,15 +96,15 @@ $.widget( "mobile.textinput", $.mobile.widget, {
keyupTimeout = setTimeout( keyup, keyupTimeoutBuffer );
});
+ // binding to pagechange here ensures that for pages loaded via
+ // ajax the height is recalculated without user input
+ $( document ).one( "pagechange", keyup );
+
// Issue 509: the browser is not providing scrollHeight properly until the styles load
if ( $.trim( input.val() ) ) {
// bind to the window load to make sure the height is calculated based on BOTH
// the DOM and CSS
$( window ).load( keyup );
-
- // binding to pagechange here ensures that for pages loaded via
- // ajax the height is recalculated without user input
- $( document ).one( "pagechange", keyup );
}
}
},
Please sign in to comment.
Something went wrong with that request. Please try again.