Checks whether the stepper contains the focused element.
()
| 608 | |
| 609 | /** Checks whether the stepper contains the focused element. */ |
| 610 | private _containsFocus(): boolean { |
| 611 | const stepperElement = this._elementRef.nativeElement; |
| 612 | const focusedElement = _getFocusedElementPierceShadowDom(); |
| 613 | return stepperElement === focusedElement || stepperElement.contains(focusedElement); |
| 614 | } |
| 615 | |
| 616 | /** Checks whether the passed-in index is a valid step index. */ |
| 617 | private _isValidIndex(index: number): boolean { |
no test coverage detected