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 authored and hsuanxyz committed Dec 6, 2017
1 parent e9b8353 commit ab06986
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 ab06986

Please sign in to comment.