Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Fix input box focus state (#227)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Kingman <alex.kingman@blackbaud.me>
  • Loading branch information
Blackbaud-AlexKingman and Alex Kingman committed Dec 1, 2020
1 parent 363f734 commit 26e1571
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/public/modules/input-box/input-box.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
ChangeDetectorRef,
Component,
ContentChild,
Input,
Expand Down Expand Up @@ -92,6 +93,7 @@ export class SkyInputBoxComponent implements OnInit {

constructor(
@Optional() public themeSvc: SkyThemeService,
private changeRef: ChangeDetectorRef,
private inputBoxHostSvc: SkyInputBoxHostService
) { }

Expand Down Expand Up @@ -120,6 +122,7 @@ export class SkyInputBoxComponent implements OnInit {
// initial change detection. Using `setTimeout()` here fixes it.
setTimeout(() => {
this.formControlHasFocus = hasFocus;
this.changeRef.markForCheck();
});
}

Expand Down

0 comments on commit 26e1571

Please sign in to comment.