Skip to content

Commit 4c5de64

Browse files
committed
fix: resolve getNodeCollapsedState() method call in tree item template
Fixes incorrect context reference in tree item blade template where $this->getNodeCollapsedState($record) was called from a blade component context where $this doesn't refer to the Livewire component. Changed to use $tree->getLivewire()->getNodeCollapsedState($record) to properly access the method from the correct Livewire component context. This enables proper node collapse state functionality for tree items, allowing developers to override getNodeCollapsedState() to control initial tree node visibility (e.g., starting with collapsed nodes). Fixes #88
1 parent 40a3404 commit 4c5de64

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

resources/css/plugin.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@
99
@import './button.css';
1010
@import './custom-nestable-item.css';
1111

12-
@source '../views/**/*.blade.php';
12+
@source "../views";
13+
14+
.filament-tree-list.hidden {
15+
display: none;
16+
}

0 commit comments

Comments
 (0)