diff --git a/js/jquery.mobile.forms.textinput.js b/js/jquery.mobile.forms.textinput.js index b1643bf0..a2d64d10 100644 --- a/js/jquery.mobile.forms.textinput.js +++ b/js/jquery.mobile.forms.textinput.js @@ -34,11 +34,11 @@ $.widget( "mobile.textinput", $.mobile.widget, { if( input.is('[type="search"],[data-type="search"]') ){ focusedEl = input.wrap('').parent(); var clearbtn = $('clear text') - .click(function(){ + .tap(function( e ){ input.val('').focus(); input.trigger('change'); clearbtn.addClass('ui-input-clear-hidden'); - return false; + e.preventDefault(); }) .appendTo(focusedEl) .buttonMarkup({icon: 'delete', iconpos: 'notext', corners:true, shadow:true});