]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete: Don't add anchors to items in generated menu
authorKris Borchers <kris.borchers@gmail.com>
Mon, 23 Sep 2013 03:25:29 +0000 (22:25 -0500)
committerKris Borchers <kris.borchers@gmail.com>
Sun, 6 Oct 2013 02:52:31 +0000 (21:52 -0500)
ui/jquery.ui.autocomplete.js

index 8328cb6e5e7b4ec00f7f59d11cac5aad6b13298d..d1a3c252db3391ffe0c4e011fb11c77909af0ea1 100644 (file)
@@ -523,9 +523,7 @@ $.widget( "ui.autocomplete", {
        },
 
        _renderItem: function( ul, item ) {
-               return $( "<li>" )
-                       .append( $( "<a>" ).text( item.label ) )
-                       .appendTo( ul );
+               return $( "<li>" ).text( item.label ).appendTo( ul );
        },
 
        _move: function( direction, event ) {