[6.x] Assets fieldtype with max 1
Bug description
I have noticed a few things.
-
If a file is already selected, you don't see a max 1 somewhere. You can upload or browse a second image and the first disappears immediately. You might be wondering why? Because you don't see a different behaviour when the field allows multiple assets.
-
I'm a bit stuck at the moment and don't know why: V5 sometimes act different. An assets field in a group hides the whole "Browse Assets" header when you have already selected one asset. You have to actively clear the asset before choosing an other one. I like that somehow. But it's not 100% understandable either.
Just wanted to point out the differences. Perhaps this is all intentional.
https://github.com/user-attachments/assets/33d08c4e-3808-4bea-958b-317a64c29d52
https://github.com/user-attachments/assets/69b31f8e-8ef3-466e-9a0a-ca87cd8f1258
How to reproduce
Create an assets fieldtype with max. 1
Logs
Environment
6.0.0-alpha.9
Installation
Fresh statamic/statamic site via CLI
Additional details
No response