diff --git a/packages/primevue/src/tree/BaseTree.vue b/packages/primevue/src/tree/BaseTree.vue index 32bfa5a582..8c8c6731e9 100644 --- a/packages/primevue/src/tree/BaseTree.vue +++ b/packages/primevue/src/tree/BaseTree.vue @@ -43,7 +43,7 @@ export default { default: false }, filterBy: { - type: String | ((node) => String), + type: [String, Function], default: 'label' }, filterMode: {