Handles focusout events for the cell.
(event: FocusEvent)
| 136 | |
| 137 | /** Handles focusout events for the cell. */ |
| 138 | onFocusOut(event: FocusEvent): void { |
| 139 | const blurTarget = _getEventTarget<Element>(event); |
| 140 | const widget = this.inputs.getWidget(blurTarget); |
| 141 | |
| 142 | // Pass down focusout event to the widget. |
| 143 | widget?.onFocusOut(event); |
| 144 | |
| 145 | const focusTarget = event.relatedTarget as Element | null; |
| 146 | if (this.element().contains(focusTarget)) return; |
| 147 | |
| 148 | this.isFocused.set(false); |
| 149 | } |
| 150 | |
| 151 | /** Focuses the cell or the active widget. */ |
| 152 | focus(): void { |
nothing calls this directly
no test coverage detected