Skip to content

Commit e08791d

Browse files
committed
Autocomplete: Don't add anchors to items in generated menu
1 parent fba5c6f commit e08791d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ui/jquery.ui.autocomplete.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -523,9 +523,7 @@ $.widget( "ui.autocomplete", {
523523
},
524524

525525
_renderItem: function( ul, item ) {
526-
return $( "<li>" )
527-
.append( $( "<a>" ).text( item.label ) )
528-
.appendTo( ul );
526+
return $( "<li>" ).text( item.label ).appendTo( ul );
529527
},
530528

531529
_move: function( direction, event ) {

0 commit comments

Comments
 (0)