• Resolve the SohlItem indicated by the closest [data-item-id] ancestor of target. Lookup goes through the resolved actor's embedded items so it works whether or not the sheet uses UUIDs, and falls back to the row's own data-uuid when the actor route comes up empty (an unowned/world item row, or a surface that emits no data-actor-id marker).

    Parameters

    • target: HTMLElement

      The HTMLElement the context menu was opened on.

    Returns SohlItem | undefined

    The resolved item, or undefined.