From 334f986e158b62fff900772ebaf6891f467a49ef Mon Sep 17 00:00:00 2001 From: mertsincan Date: Mon, 4 Sep 2023 13:25:33 +0100 Subject: [PATCH] Fixed #4381 - MenuPassThrough: The PT option menu does not work --- components/lib/basecomponent/BaseComponent.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/lib/basecomponent/BaseComponent.vue b/components/lib/basecomponent/BaseComponent.vue index ff1c206da..af0b49420 100644 --- a/components/lib/basecomponent/BaseComponent.vue +++ b/components/lib/basecomponent/BaseComponent.vue @@ -492,8 +492,10 @@ export default { const getValue = (value) => { const computedValue = callback ? callback(value) : value; + const _key = ObjectUtils.toFlatCase(key); + const _cKey = ObjectUtils.toFlatCase(this.$name); - return computedValue?.[ObjectUtils.toFlatCase(key)] ?? computedValue; + return (_key !== _cKey ? computedValue?.[_key] : undefined) ?? computedValue; }; return ObjectUtils.isNotEmpty(_usept)