- 🇦🇺Australia acbramley
I'm not even sure if this is something we could fix? If you don't click Upload, how do we save that state?
- 🇦🇺Australia acbramley
I originally thought I couldn't reproduce this but it was because the alt field was required on the image field I was uploading to, so the initial preview submission wouldn't go through because the alt text was required, then it needed another submission to go through. When returning in that case the image was restored.
However, if alt text is optional, I can reproduce it. I've debugged into NodeForm::form and confirmed that the form state's entity does have a value for the file and the files exist in the database and on disk so I don't know if this is a Node issue.
Could it be an issue with the image/file widget? Note that I can reproduce it with a File field too.