Skip to content

Commit

Permalink
Revert "Fixed #9660 - optionValue compatibility issue"
Browse files Browse the repository at this point in the history
This reverts commit d1a8e16.
  • Loading branch information
cagataycivici committed Dec 24, 2020
1 parent d1a8e16 commit edfcd2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/components/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ export class Dropdown implements OnInit,AfterViewInit,AfterContentInit,AfterView
}

getOptionValue(option: any) {
return this.optionValue ? ObjectUtils.resolveFieldData(option, this.optionValue) : option;
return this.optionValue ? ObjectUtils.resolveFieldData(option, this.optionValue) : (option.value !== undefined ? option.value : option);
}

isOptionDisabled(option: any) {
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/multiselect/multiselect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ export class MultiSelect implements OnInit,AfterViewInit,AfterContentInit,AfterV
}

getOptionValue(option: any) {
return this.optionValue ? ObjectUtils.resolveFieldData(option, this.optionValue) : option;
return this.optionValue ? ObjectUtils.resolveFieldData(option, this.optionValue) : (option.value !== undefined ? option.value : option);
}

isOptionDisabled(option: any) {
Expand Down

0 comments on commit edfcd2c

Please sign in to comment.