(e)
| 43 | className: "context-menu scroll", |
| 44 | innerHTML: content || "", |
| 45 | onclick(e) { |
| 46 | if (options.onclick) options.onclick.call(this, e); |
| 47 | if (options.onselect) { |
| 48 | const $target = e.target; |
| 49 | const { action } = $target.dataset; |
| 50 | if (!action) return; |
| 51 | hide(); |
| 52 | options.onselect.call(this, action); |
| 53 | } |
| 54 | }, |
| 55 | style: { |
| 56 | top: options.top || "auto", |
| 57 | left: options.left || "auto", |