Permalink
Browse files

Add new focus event which will show cross button on search textbox wh…

…en some item get paste directly without key event to search text box
  • Loading branch information...
1 parent 3d0064b commit cb645ede22a062863e1b0c33d11f9f11b87b6969 @joshiabk joshiabk committed May 14, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 js/jquery.mobile.forms.textinput.js
@@ -53,7 +53,8 @@ $.widget( "mobile.textinput", $.mobile.widget, {
}
toggleClear();
- input.keyup(toggleClear);
+ input.keyup(toggleClear);
+ input.focus(toggleClear);
}
else{
input.addClass('ui-corner-all ui-shadow-inset' + themeclass);

0 comments on commit cb645ed

Please sign in to comment.