Fixed #1192 - Disabled options do not get disabled

pull/1196/head^2
Cagatay Civici 2021-05-12 15:17:41 +03:00
parent 7634c02295
commit af4f9183a3
1 changed files with 1 additions and 1 deletions

View File

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