Menu Focus Change (Deprecated)

ui:menuFocusChange

Deprecated as of API version 47.0. Use lightning:buttonMenu instead.

This event is fired when you scroll up and down the ui:menuList component, which triggers a focus change in menu items. To set a handler for the ui:menuFocusChange event, use the menuFocusChange attribute on ui:menuList.

The following example shows a menu with two list items. The handleChange client-side controller handles the ui:menuFocusChange event.

If you're using this event with a component other than ui:menuList, register the event first.

NameDescriptionTypeDefaultRequired
currentItemThe menu item that's currently focused.component[]
previousItemThe menu item that's previously focused.component[]