Skip to content

Commit

Permalink
fix(module:input-number): check value when press tab key (#706)
Browse files Browse the repository at this point in the history
close #651
  • Loading branch information
vthinkxie authored Dec 8, 2017
1 parent e50b72f commit 9923a86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/input-number/nz-input-number.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ export class NzInputNumberComponent implements ControlValueAccessor {

_emitKeydown($event: KeyboardEvent): void {
if ($event.keyCode === TAB && this._focused) {
this._checkValue();
this._focused = false;
this.nzBlur.emit($event);
}
Expand Down

0 comments on commit 9923a86

Please sign in to comment.