Commit 4c5de64
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 #881 parent 40a3404 commit 4c5de64
2 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments