-
-
Notifications
You must be signed in to change notification settings - Fork 586
Closed
Description
Bug description
We have a file field to upload images in our navigation blueprint. When a user sets an image, saves the navigation item and reopens the navigation item side panel without reloading, the file field is no longer populated but defaults to the empty state.
After the tree is saved and the page reloaded the field is populated correctly but this behavior causes confusion to users.
How to reproduce
- Add a file field to a navigation blueprint
- Choose a file for a navigation item and save the item
- Click again on the same navigation item opening the side panel, without saving the tree or reloading first
- See that the file field is not showing your selected file as value
Happens both with newly uploaded files and existing files
Logs
Environment
$ php please support:details
Environment
Application Name: xxx
Laravel Version: 10.48.28
PHP Version: 8.2.24
Composer Version: 2.8.3
Environment: local
Debug Mode: ENABLED
URL: xxx.ddev.site
Maintenance Mode: OFF
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: log
Cache: redis
Database: mysql
Logs: stack / single
Mail: smtp
Queue: sync
Session: file
Livewire
Livewire: v3.5.19
Statamic
Addons: 2
Sites: 6 (xxx - DE, xxx - EN, xxx - DK, and 3 more)
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 5.51.0 PRO
Statamic Addons
appswithlove/statamic-one-click-content-translation: 5.2.3
thoughtco/statamic-restrict-fields: 1.1.0
Installation
Existing Laravel app
Additional details
This issue already existed on previous versions, I just updated to verify it still affects the latest one