mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #5257
This commit is contained in:
parent
a4539ae307
commit
5d9ac9917d
1 changed files with 5 additions and 1 deletions
|
@ -270,7 +270,11 @@ export default {
|
|||
// $attrs without `pt:*`
|
||||
return Object.entries(this.$attrs || {})
|
||||
.filter(([key]) => !key?.startsWith('pt:'))
|
||||
.reduce((acc, [key, value]) => (acc[key] = value) && acc, {});
|
||||
.reduce((acc, [key, value]) => {
|
||||
acc[key] = value;
|
||||
|
||||
return acc;
|
||||
}, {});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue