(event: UIEvent)
| 46 | } |
| 47 | |
| 48 | public show(event: UIEvent): void { |
| 49 | // Store the document reference from the event target to support pop-out windows |
| 50 | // Use cross-window compatible instanceOf check |
| 51 | if ((event.target as Node)?.instanceOf?.(HTMLElement)) { |
| 52 | this.targetDoc = (event.target as HTMLElement).ownerDocument; |
| 53 | } |
| 54 | this.menu.show(event); |
| 55 | |
| 56 | // Apply color styling after menu is shown |
| 57 | window.setTimeout(() => { |
| 58 | this.applyColorStyling(); |
| 59 | }, 10); |
| 60 | } |
| 61 | |
| 62 | public showAtElement(element: HTMLElement): void { |
| 63 | // Store the document reference from the element to support pop-out windows |
no test coverage detected