Fixed #221 - Primitive values support in Select components

pull/227/head
cagataycivici 2020-03-04 09:39:29 +03:00
parent 1b14a1ed30
commit 86945d7980
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ export default {
},
methods: {
getOptionLabel(option) {
return ObjectUtils.resolveFieldData(option, this.optionLabel);
return this.optionLabel ? ObjectUtils.resolveFieldData(option, this.optionLabel) : option;
},
getOptionValue(option) {
return this.optionValue ? ObjectUtils.resolveFieldData(option, this.optionValue) : option;