Handles focusout events for the widget.
(event: FocusEvent)
| 142 | |
| 143 | /** Handles focusout events for the widget. */ |
| 144 | onFocusOut(event: FocusEvent): void { |
| 145 | const focusTarget = event.relatedTarget as Element; |
| 146 | if (this.widgetHost().contains(focusTarget)) return; |
| 147 | |
| 148 | // Reset states when focus leaving widget. |
| 149 | this.deactivate(event); |
| 150 | } |
| 151 | |
| 152 | /** Focuses the widget's host element. */ |
| 153 | focus(): void { |
nothing calls this directly
no test coverage detected