_contextMenuHandler(e) {
    this.removeActions();
    const target = e.composedPath()[0];
    if (!target) {
      return;
    }
    const actions = [];
    for (let i = 0, len = this.contextActions.length; i < len; i++) {
      const data = this.contextActions[i];
      if (target.matches(data.selector)) {
        actions.push(data);
      }
    }
    if (actions.length) {
      this._lastTarget = target;
      const { x, y } = e;
      this.renderActions(actions, { x, y });
    }
  }
/**
   * A handler for `contextmenu` event dispatched when the user right click on
   * an element.
   * If the target element matches any selector of registered actions it will
   * be added to the list of results to dropdown menu.
   *
   * @param {MouseEvent} e
   */
A handler for `contextmenu` event dispatched when the user right click on
an element.
If the target element matches any selector of registered actions it will
be added to the list of results to dropdown menu.


A handler for ` contextmenu ` event dispatched when the user right click on an element . If the target element matches any selector of registered actions it will be added to the list of results to dropdown menu .
_contextMenuHandler(e) {
    this.removeActions();
    const target = e.composedPath()[0];
    if (!target) {
      return;
    }
    const actions = [];
    for (let i = 0, len = this.contextActions.length; i < len; i++) {
      const data = this.contextActions[i];
      if (target.matches(data.selector)) {
        actions.push(data);
      }
    }
    if (actions.length) {
      this._lastTarget = target;
      const { x, y } = e;
      this.renderActions(actions, { x, y });
    }
  }
_contextMenuHandler ( e ) { this . removeActions ( ) ; const target = e . composedPath ( ) [ 0 ] ; if ( ! target ) { return ; } const actions = [ ] ; for ( let i = 0 , len = this . contextActions . length ; i < len ; i ++ ) { const data = this . contextActions [ i ] ; if ( target . matches ( data . selector ) ) { actions . push ( data ) ; } } if ( actions . length ) { this . _lastTarget = target ; const { x , y } = e ; this . renderActions ( actions , { x , y } ) ; } }
A handler for `contextmenu` event dispatched when the user right click on
 an element.
A handler for ` contextmenu ` event dispatched when the user right click on an element .