-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Open
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: cdk/a11ydocsThis issue is related to documentationThis issue is related to documentation
Description
Documentation Feedback
Checking the implementation, I observe that the FocusMonitor emits inside NgZone:
components/src/cdk/a11y/focus-monitor/focus-monitor.ts
Lines 459 to 463 in 9494ff2
private _emitOrigin(info: MonitoredElementInfo, origin: FocusOrigin) { | |
if (info.subject.observers.length) { | |
this._ngZone.run(() => info.subject.next(origin)); | |
} | |
} |
And confirmed checking NgZone.isInAngularZone()
in a subscription.
But documentations says:
Note: currently the FocusMonitor emits on the observable outside of the Angular zone. Therefore, if you markForCheck in the subscription you must put yourself back in the Angular zone.
Affected documentation page
Metadata
Metadata
Assignees
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: cdk/a11ydocsThis issue is related to documentationThis issue is related to documentation