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
  • Loading branch information
cipchk committed Dec 4, 2017
1 parent c85111a commit 9241d0e
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 @@ -535,7 +535,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 @@ -544,7 +544,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 9241d0e

Please sign in to comment.