-
Notifications
You must be signed in to change notification settings - Fork 6.8k
refactor(focus-monitor): support monitoring ElementRef #12712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Allows for an `ElementRef` to be monitored by the `FocusMonitor`. This makes it more convenient, because most of the time we're dealing with `ElementRef` anyway.
monitor(element: HTMLElement, checkChildren: boolean = false): Observable<FocusOrigin> { | ||
monitor(element: HTMLElement, checkChildren?: boolean): Observable<FocusOrigin>; | ||
|
||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we have to repeat the docs comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK otherwise it won't display for all signatures in the IDE autocompletion.
Looks like something that was missed in angular#12712. For consistency with `monitor` and `stopMonitoring`, accepts an `ElementRef` in `focusVia`.
Looks like something that was missed in #12712. For consistency with `monitor` and `stopMonitoring`, accepts an `ElementRef` in `focusVia`.
Looks like something that was missed in #12712. For consistency with `monitor` and `stopMonitoring`, accepts an `ElementRef` in `focusVia`.
Looks like something that was missed in #12712. For consistency with `monitor` and `stopMonitoring`, accepts an `ElementRef` in `focusVia`.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Allows for an
ElementRef
to be monitored by theFocusMonitor
. This makes it more convenient, because most of the time we're dealing withElementRef
anyway.