mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #4473
This commit is contained in:
parent
c634ad5dfe
commit
44212378dc
2 changed files with 4 additions and 8 deletions
|
@ -487,8 +487,6 @@ export default {
|
|||
return ObjectUtils.isString(value) || ObjectUtils.isArray(value) ? { class: value } : value;
|
||||
},
|
||||
_getPT(pt, key = '', callback) {
|
||||
const _usept = pt?.['_usept'];
|
||||
|
||||
const getValue = (value, checkSameKey = false) => {
|
||||
const computedValue = callback ? callback(value) : value;
|
||||
const _key = ObjectUtils.toFlatCase(key);
|
||||
|
@ -497,9 +495,9 @@ export default {
|
|||
return (checkSameKey ? (_key !== _cKey ? computedValue?.[_key] : undefined) : computedValue?.[_key]) ?? computedValue;
|
||||
};
|
||||
|
||||
return ObjectUtils.isNotEmpty(_usept)
|
||||
return pt?.hasOwnProperty('_usept')
|
||||
? {
|
||||
_usept,
|
||||
_usept: pt['_usept'],
|
||||
originalValue: getValue(pt.originalValue),
|
||||
value: getValue(pt.value)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue