filament-select-tree: [Bug]: Default value is not showing as selected
What happened?
I am facing a strange issue while using SelectTree component. It is working fine on my local machine (Windows 11) but while pushing the code to production the default selected value is not showing.
✅ This is on localhost working as expected:
🚫 This is on the production the parent category is not showing:
I’ve seen browser’s console for any errors but there wasn’t any, all the css/js are loading fine.
Here is the code:
SelectTree::make('parent_id')
->label('Parent Category')
->relationship('parent', 'name', 'parent_id')
->defaultOpenLevel(5)
->enableBranchNode(),
How to reproduce the bug
I don’t know, The code is working fine on localhost but not in production 😔
Package Version
3.1
PHP Version
8.2
Laravel Version
10.41
Which operating systems does with happen with?
Linux
Notes
No response
About this issue
- Original URL
- State: closed
- Created 5 months ago
- Comments: 19 (6 by maintainers)
There is no issue with this package.
I have deployed the same project on another server and everything works as expected.
Not sure how to dig deeper into this. Everything seems to work fine when I follow your examples. Maybe try turning off your AdBlocker; it seems there’ve been some issues with it lately combined with scripts.