Skip to content

Commit f97918a

Browse files
committed
docs: remove inaccurate note from focus monitor docs
Removes a note from the focus monitor docs that is no longer valid. Fixes #30529.
1 parent 38ac513 commit f97918a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/cdk/a11y/a11y.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,6 @@ to the element when focused. It will add `.cdk-focused` if the element is focuse
170170
add `.cdk-${origin}-focused` (with `${origin}` being `mouse`, `keyboard`, `touch`, or `program`) to
171171
indicate how the element was focused.
172172

173-
Note: currently the `FocusMonitor` emits on the observable _outside_ of the Angular zone. Therefore,
174-
if you `markForCheck` in the subscription you must put yourself back in the Angular zone.
175-
176-
```ts
177-
focusMonitor.monitor(el).subscribe(origin => this.ngZone.run(() => /* ... */ ));
178-
```
179-
180173
Any element that is monitored by calling `monitor` should eventually be unmonitored by calling
181174
`stopMonitoring` with the same element.
182175

0 commit comments

Comments
 (0)