Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#6029 closed bug (fixed)

Autocomplete: Custom item can be activated (and result in error) on PageUp/PageDown key click

Reported by: dziastinux Owned by:
Priority: major Milestone: 1.8.6
Component: ui.autocomplete Version: 1.8.4
Keywords: Cc:
Blocked by: Blocking:

Description

The problem lies in unsafe functions:

  • ui.menu.nextPage
  • ui.menu.previousPage

There unsafe selectors are used (:first, :last) Autocomplete demo with categories is provided. If first menu item is category than these selectors will select non menu item and try to activate it resulting in error.

next and previous function do not have this error (as they use .ui-menu-item:first selector).

Change History (4)

comment:1 Changed 5 years ago by scottgonzalez

  • Summary changed from Custum item can be activated (and result in error) on PageUp/PageDown key click to Autocomplete: Custom item can be activated (and result in error) on PageUp/PageDown key click

comment:2 Changed 5 years ago by scottgonzalez

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in dda7bcb.

comment:3 Changed 5 years ago by scottgonzalez

  • Milestone changed from 1.9 to 1.8.6

comment:4 Changed 5 years ago by Scott González

Autocomplete (Menu): Only traverse through .ui-menu-item elements for paging. Fixes #6029 - Autocomplete: Custom item can be activated (and result in error) on PageUp/PageDown key click.

Changeset: dda7bcb6383ed0fee9dcd1ae5f0a6e1dcc160c6b

Note: See TracTickets for help on using tickets.