diff options
author | Kris Borchers <kris.borchers@gmail.com> | 2013-09-22 22:25:29 -0500 |
---|---|---|
committer | Kris Borchers <kris.borchers@gmail.com> | 2013-10-05 21:52:31 -0500 |
commit | e08791d2c1be7628b7fd6ca2398cff195cb2e2c2 (patch) | |
tree | 0b68c1058ba48890d6f471f42ea1035ce7ba253a | |
parent | fba5c6f94ae758452174c71db7ab107796b59486 (diff) | |
download | jquery-ui-e08791d2c1be7628b7fd6ca2398cff195cb2e2c2.tar.gz jquery-ui-e08791d2c1be7628b7fd6ca2398cff195cb2e2c2.zip |
Autocomplete: Don't add anchors to items in generated menu
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 8328cb6e5..d1a3c252d 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -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 ) { |