mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 17:32:36 +00:00
Fixed #4381 - MenuPassThrough: The PT option menu does not work
This commit is contained in:
parent
75b88de8ff
commit
334f986e15
1 changed files with 3 additions and 1 deletions
|
@ -492,8 +492,10 @@ export default {
|
||||||
|
|
||||||
const getValue = (value) => {
|
const getValue = (value) => {
|
||||||
const computedValue = callback ? callback(value) : 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)
|
return ObjectUtils.isNotEmpty(_usept)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue