https://discord.umbraco.com logo
Anyone managed to get `filter` rather
# package-development
m
Anyone managed to get
filter
rather than `pickableFilter `on
umb-tree
working? ai tells me.. The
filter
property on
umb-tree
is a function that's supposed to filter (hide) tree items from view, but the Umbraco CMS tree implementation never actually applies it.
The
filter
function is stored on
UmbDefaultTreeContext
(line 38 of
default-tree.context.ts
) and forwarded from the element (line 179-181 of
default-tree.element.ts
), but nowhere in the rendering pipeline does it get called to exclude items from the tree. The
selectableFilter
/
pickableFilter
works differently - it's checked at selection time (in
_isSelectableItem
on
tree-view-element-base.ts
line 61-64) to determine if an item can be picked, but it doesn't hide items just disables.
Created an issue.. https://github.com/umbraco/Umbraco-CMS/issues/23901 if anyone has insight 😉
2 Views