Files attached to documents -> save warning

I’ve noticed that if you add a file to an invoice, there is no warning about losing your changes if you try to navigate away from the page without saving. Any other changes prompts a warning that you’re gong to loose unsaved changes if you try to navigate away.

If you do navigate away without saving, the file is no longer there when you re-visit the invoice. Is this a trivial fix?

Feel free to create an issue on GitHub