src/components/ebay-menu/index.js
function handleItemClick(e) {
    let itemEl = e.target;
    const parentEl = itemEl.closest('.menu__item, .fake-menu__item');

    if (parentEl) { // nested click inside menu_item
        itemEl = parentEl;
    }

    this.setCheckedItem(getItemElementIndex(itemEl), true);
}
function handleItemClick(e) {
    let itemEl = e.target;
    const parentEl = itemEl.closest('.menu__item, .fake-menu__item');

    if (parentEl) { // nested click inside menu_item
        itemEl = parentEl;
    }

    this.setCheckedItem(getItemElementIndex(itemEl), true);
}
function handleItemClick ( e ) { let itemEl = e . target ; const parentEl = itemEl . closest ( '.menu__item, .fake-menu__item' ) ; if ( parentEl ) { // nested click inside menu_item itemEl = parentEl ; } this . setCheckedItem ( getItemElementIndex ( itemEl ) , true ) ; }
Handle normal mouse click for item
@param {MouseEvent} e
Handle normal mouse click for item