Last active
June 13, 2020 02:09
-
-
Save Wildhammer/245018785901f88d57bb3dd7e4e485e5 to your computer and use it in GitHub Desktop.
_handleInput
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
_handleInput(control: FormControl, nextElement: HTMLInputElement): void { | |
this.autoFocusNext(control, nextElement); | |
this.onChange(this.value); | |
} | |
autoFocusNext(control: AbstractControl, nextElement: HTMLInputElement | null): void { | |
if (!control.errors && !!nextElement) this._focusMonitor.focusVia(nextElement, "program"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment