Handles focusin events for the widget.
(event: FocusEvent)
| 130 | |
| 131 | /** Handles focusin events for the widget. */ |
| 132 | onFocusIn(event: FocusEvent): void { |
| 133 | // Simple widget does not have activate state. |
| 134 | if (this.inputs.widgetType() === 'simple') return; |
| 135 | |
| 136 | // Set activate state if the focus is inside of widget. |
| 137 | const focusTarget = _getEventTarget<Element>(event); |
| 138 | if (this.widgetHost().contains(focusTarget) && this.widgetHost() !== focusTarget) { |
| 139 | this.activate(event); |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | /** Handles focusout events for the widget. */ |
| 144 | onFocusOut(event: FocusEvent): void { |
nothing calls this directly
no test coverage detected