Autocomplete keypress skip menu
Hi All,
I am using jquery-ui 1.11.2 for autocomplete with the following custom menu rendering:
- function integrationSearchRenderMenu(ul, items) {
- var self = this,
- emptyItem = { label: '', value: '' };
-
- ul.append($('<div></div>').data('ui-autocomplete-item', emptyItem).append(
- '<div class="image"></div>' +
- '<div class="name">Product</div>' +
- '<div class="dek">Description</div>').addClass('ui-widget-header'));
-
- ul.addClass('integration-search');
-
- $.each(items, function(index, item) {
- self._renderItemData(ul, item);
- });
- }
When using the arrow keys to navigate into the autocomplete options, the menu is getting focus first, requiring an extra key press to get past. How would I skip directly to the real items?