Skip to content

Commit

Permalink
fix(module:select): fix select enter open when disabled
Browse files Browse the repository at this point in the history
close #3408
  • Loading branch information
vthinkxie authored and vthinkxie committed Jun 22, 2019
1 parent 7418263 commit 36db36c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/select/nz-select.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@ export class NzSelectService {
}

onKeyDown(e: KeyboardEvent): void {
if (this.disabled) {
return;
}
const keyCode = e.keyCode;
const eventTarget = e.target as HTMLInputElement;
const listOfFilteredOptionWithoutDisabled = this.listOfFilteredOption.filter(item => !item.nzDisabled);
Expand Down

0 comments on commit 36db36c

Please sign in to comment.