Deactivates the widget and restores focus to the widget's host element.
(event?: KeyboardEvent | FocusEvent)
| 190 | |
| 191 | /** Deactivates the widget and restores focus to the widget's host element. */ |
| 192 | deactivate(event?: KeyboardEvent | FocusEvent): void { |
| 193 | if (!this.isActivated()) return; |
| 194 | |
| 195 | this.isActivated.set(false); |
| 196 | this.lastDeactivateEvent.set(event); |
| 197 | } |
| 198 | } |
no test coverage detected