Side-effect executed whenever the widget activates. Runs in the write phase.
()
| 155 | |
| 156 | /** Side-effect executed whenever the widget activates. Runs in the write phase. */ |
| 157 | activationEffect(): void { |
| 158 | if (this.isActivated()) { |
| 159 | const event = this.lastActivateEvent(); |
| 160 | this.inputs.onActivate?.(event); |
| 161 | |
| 162 | // Only automatically redirect focus if explicit configuration was supplied. |
| 163 | if (this.inputs.focusTarget()) { |
| 164 | this.focus(); |
| 165 | } |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | /** Side-effect executed whenever the widget deactivates. Runs in the write phase. */ |
| 170 | deactivationEffect(): void { |
no test coverage detected