mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
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:
parent
6731b0e2d6
commit
cf48a3c5c8
@ -82,7 +82,7 @@
|
|||||||
.appendTo( ul );
|
.appendTo( ul );
|
||||||
};
|
};
|
||||||
|
|
||||||
this.button = $( "<button> </button>" )
|
this.button = $( "<button type='button'> </button>" )
|
||||||
.attr( "tabIndex", -1 )
|
.attr( "tabIndex", -1 )
|
||||||
.attr( "title", "Show All Items" )
|
.attr( "title", "Show All Items" )
|
||||||
.insertAfter( input )
|
.insertAfter( input )
|
||||||
|
Loading…
Reference in New Issue
Block a user