Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cdk/a11y): error if FocusMonitor is used on non-element nodes (#2…
…0640) * Fixes an error thrown when trying to stop monitoring a non-element node. Now `FocusMonitor.monitor` is a noop. * Fixes an error on init if the `cdkMonitorFocus` directive is placed on a non-element node. Related to #20632.
- Loading branch information
Showing
2 changed files
with
24 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters