Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
fix: Detect focusabel components
Browse files Browse the repository at this point in the history
  • Loading branch information
EndyKaufman committed Sep 3, 2017
1 parent 0c0b018 commit 11c5508
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base/base-component/base-component.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ export class BaseComponent implements OnInit, OnDestroy {
inputElement.focus();
break;
}
if (inputElement.nativeElement) {
if (inputElement && inputElement.nativeElement) {
inputElement = inputElement.nativeElement
} else {
if (inputElement.inputElement) {
if (inputElement && inputElement.inputElement) {
inputElement = inputElement.inputElement
} else {
break;
Expand Down

0 comments on commit 11c5508

Please # to comment.