Skip to content

Commit 877651a

Browse files
committed
Merge pull request jquery-archive#1631 from joshiabk/master
jQuery Search Textbox change to add new focus event which will show clear button when some item gets pasted directly without key event to search text box. Thanks joshiabk
2 parents 022f811 + cb645ed commit 877651a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/jquery.mobile.forms.textinput.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ $.widget( "mobile.textinput", $.mobile.widget, {
5353
}
5454

5555
toggleClear();
56-
input.keyup(toggleClear);
56+
input.keyup(toggleClear);
57+
input.focus(toggleClear);
5758
}
5859
else{
5960
input.addClass('ui-corner-all ui-shadow-inset' + themeclass);

0 commit comments

Comments
 (0)