Skip to content

Commit ffc0855

Browse files
mariovisicscottgonzalez
authored andcommitted
Autocomplete (Combobox demo): Set the button type to button to prevent form submission. Fixes #6755 - Autocomplete: The combobox "show all" button submits forms.
1 parent cba92af commit ffc0855

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demos/autocomplete/combobox.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
.appendTo( ul );
8383
};
8484

85-
this.button = $( "<button>&nbsp;</button>" )
85+
this.button = $( "<button type='button'>&nbsp;</button>" )
8686
.attr( "tabIndex", -1 )
8787
.attr( "title", "Show All Items" )
8888
.insertAfter( input )

0 commit comments

Comments
 (0)