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

Commit

Permalink
Textinput: suppressed disabled check for event listeners. Fixed #509
Browse files Browse the repository at this point in the history
…- Textarea doesn't AutoGrow height with pre-filled values in a collapsible
  • Loading branch information
jhogervorst committed Feb 24, 2013
1 parent fe754c9 commit 48fdb20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/widgets/forms/textinput.js
Expand Up @@ -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" ) ) {
Expand Down

0 comments on commit 48fdb20

Please sign in to comment.