Skip to content
Permalink
Browse files

Autocomplete: Update categories demo to use menu's new items option t…

…o exclude custom headers from menu focus
  • Loading branch information
jzaefferer committed Nov 13, 2013
1 parent 25e1418 commit 14782c04e2201c53e3ecb80b086f1a4c27aa991d
Showing with 4 additions and 0 deletions.
  1. +4 −0 demos/autocomplete/categories.html
@@ -21,6 +21,10 @@
</style>
<script>
$.widget( "custom.catcomplete", $.ui.autocomplete, {
_create: function() {
this._super();
this.menu.option( "items", "> :not(.ui-autocomplete-category)" );

This comment has been minimized.

Copy link
@scottgonzalez

scottgonzalez Nov 13, 2013

Member

This should probably use this.widget().menu( "option", "items", "> :not(.ui-autocomplete-category)" ); since this.menu isn't public.

This comment has been minimized.

Copy link
@jzaefferer

jzaefferer Nov 13, 2013

Author Member

Fixed in 89ae764

},
_renderMenu: function( ul, items ) {
var that = this,
currentCategory = "";

0 comments on commit 14782c0

Please sign in to comment.
You can’t perform that action at this time.