(event: UIEvent)
| 76 | } |
| 77 | |
| 78 | public show(event: UIEvent): void { |
| 79 | // Store the document reference from the event target to support pop-out windows |
| 80 | // Use cross-window compatible instanceOf check |
| 81 | if ((event.target as Node)?.instanceOf?.(HTMLElement)) { |
| 82 | this.targetDoc = (event.target as HTMLElement).ownerDocument; |
| 83 | } |
| 84 | this.menu.show(event); |
| 85 | |
| 86 | // Apply color styling after menu is shown |
| 87 | window.setTimeout(() => { |
| 88 | this.applyColorStyling(); |
| 89 | }, 10); |
| 90 | } |
| 91 | |
| 92 | public showAtElement(element: HTMLElement): void { |
| 93 | // Store the document reference from the element to support pop-out windows |
no test coverage detected