Fixed #1037 - Dropdown optionDisabled is not working

pull/1143/head
Tuğçe Küçükoğlu 2021-03-25 14:34:14 +03:00
parent 146cc6b70d
commit 52429b0efe
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ export default {
return this.dataKey ? ObjectUtils.resolveFieldData(option, this.dataKey) : this.getOptionLabel(option);
},
isOptionDisabled(option) {
return this.optionDisabled ? ObjectUtils.resolveFieldData(option, this.optionDisabled) : false;
return this.optionDisabled ? option.optionDisabled : false;
},
getOptionGroupRenderKey(optionGroup) {
return ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);