Skip to content

Commit

Permalink
fix(module:select): fix choose disabled item via direction key control (
Browse files Browse the repository at this point in the history
#675)

close #674
  • Loading branch information
cipchk authored and vthinkxie committed Dec 5, 2017
1 parent 74b01da commit 80d637d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/select/nz-select.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ export class NzSelectComponent implements OnInit, AfterContentInit, AfterContent
if (this._isOpen) {
$event.preventDefault();
$event.stopPropagation();
this._activeFilterOption = this.nextOption(this._activeFilterOption, this._filterOptions);
this._activeFilterOption = this.nextOption(this._activeFilterOption, this._filterOptions.filter(w => !w._disabled));
this.scrollToActive();
}
}
Expand All @@ -546,7 +546,7 @@ export class NzSelectComponent implements OnInit, AfterContentInit, AfterContent
if (this._isOpen) {
$event.preventDefault();
$event.stopPropagation();
this._activeFilterOption = this.preOption(this._activeFilterOption, this._filterOptions);
this._activeFilterOption = this.preOption(this._activeFilterOption, this._filterOptions.filter(w => !w._disabled));
this.scrollToActive();
}
}
Expand Down

0 comments on commit 80d637d

Please sign in to comment.