Autocomplete (Combobox demo): Set the button type to button to prevent form submission. Fixes #6755 - Autocomplete: The combobox "show all" button submits forms.

This commit is contained in:
Mario Visic 2010-12-16 18:10:30 +08:00 committed by Scott González
parent 6731b0e2d6
commit cf48a3c5c8

View File

@ -82,7 +82,7 @@
.appendTo( ul ); .appendTo( ul );
}; };
this.button = $( "<button>&nbsp;</button>" ) this.button = $( "<button type='button'>&nbsp;</button>" )
.attr( "tabIndex", -1 ) .attr( "tabIndex", -1 )
.attr( "title", "Show All Items" ) .attr( "title", "Show All Items" )
.insertAfter( input ) .insertAfter( input )