diff --git a/src/components/listbox/ListBox.vue b/src/components/listbox/ListBox.vue
index c9f92478a..4f5672eba 100644
--- a/src/components/listbox/ListBox.vue
+++ b/src/components/listbox/ListBox.vue
@@ -8,8 +8,8 @@
- -
+
-
{{getOptionLabel(option)}}
@@ -34,7 +34,8 @@ export default {
metaKeySelection: Boolean,
filter: Boolean,
optionLabel: null,
- optionValue: null
+ optionValue: null,
+ optionDisabled: null
},
optionTouched: false,
data() {
@@ -49,8 +50,11 @@ export default {
getOptionValue(option) {
return this.optionValue ? ObjectUtils.resolveFieldData(option, this.optionValue) : option;
},
+ isOptionDisabled(option) {
+ return this.optionDisabled ? ObjectUtils.resolveFieldData(option, this.optionDisabled) : false;
+ },
onOptionSelect(event, option) {
- if (this.disabled) {
+ if (this.disabled || this.isOptionDisabled(option)) {
return;
}