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