Skip to content

Commit 8ff0c55

Browse files
Merge pull request jquery-archive#5691 from jhogervorst/issue-509
Automatic resizing now works for disabled textareas with pre-filled values
1 parent a25fef9 commit 8ff0c55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/widgets/forms/textinput.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ $.widget( "mobile.textinput", $.mobile.widget, {
136136

137137
// binding to pagechange here ensures that for pages loaded via
138138
// ajax the height is recalculated without user input
139-
this._on( $.mobile.document, { "pagechange": "_keyup" });
139+
this._on( true, $.mobile.document, { "pagechange": "_keyup" });
140140

141141
// Issue 509: the browser is not providing scrollHeight properly until the styles load
142142
if ( $.trim( input.val() ) ) {
143143
// bind to the window load to make sure the height is calculated based on BOTH
144144
// the DOM and CSS
145-
this._on( $.mobile.window, {"load": "_keyup"});
145+
this._on( true, $.mobile.window, {"load": "_keyup"});
146146
}
147147
}
148148
if ( input.attr( "disabled" ) ) {

0 commit comments

Comments
 (0)