Permalink
Browse files

Textinput: suppressed disabled check for event listeners. Fixed #509

…- Textarea doesn't AutoGrow height with pre-filled values in a collapsible
  • Loading branch information...
jhogervorst committed Feb 24, 2013
1 parent fe754c9 commit 48fdb2019837b5759b47b0f95eb06ca749e32521
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/widgets/forms/textinput.js
@@ -136,13 +136,13 @@ $.widget( "mobile.textinput", $.mobile.widget, {
// binding to pagechange here ensures that for pages loaded via
// ajax the height is recalculated without user input
- this._on( $.mobile.document, { "pagechange": "_keyup" });
+ this._on( true, $.mobile.document, { "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
- this._on( $.mobile.window, {"load": "_keyup"});
+ this._on( true, $.mobile.window, {"load": "_keyup"});
}
}
if ( input.attr( "disabled" ) ) {

0 comments on commit 48fdb20

Please sign in to comment.