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