Skip to content

Commit 14782c0

Browse files
committed
Autocomplete: Update categories demo to use menu's new items option to exclude custom headers from menu focus
1 parent 25e1418 commit 14782c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

demos/autocomplete/categories.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
</style>
2222
<script>
2323
$.widget( "custom.catcomplete", $.ui.autocomplete, {
24+
_create: function() {
25+
this._super();
26+
this.menu.option( "items", "> :not(.ui-autocomplete-category)" );
27+
},
2428
_renderMenu: function( ul, items ) {
2529
var that = this,
2630
currentCategory = "";

0 commit comments

Comments
 (0)